removed locks in SQL test