fixed Postgresql module and gunit tests