[REFACTOR] refs #35761 @0.35 Refactored PostgresqlDatabase