changed local database to posgres