Insert sleep to wait for mongodb