removed locks from PGSQL module