Fix SQL fails.

Need to sleep..