Apparently i solved it somehow. What i did was moving the mysql querry at the begining of playerconnecting then use a function to save the result into an object, then call deferrals.defer() and set a 100ms timeout after it