changed local database to postgresql