Changed local database to pg