patch for pgsql and changes to the schema files for the DB modification