changed db to postgres and updated test suite