changed db to pgsql