Refactor InitPostgres() to use bitwise option flags