changed local database to postgres