remove sleep since this is not where the database is locked issue is