added test for pgsql database