How can i place a delay for the execution of codes in the background? Something like a sleep (ms), if there exist a command. The purpose is to allow the completion of multiple data inserts to the server before the execution of the next line of codes. Please share your tricks.