Fix PgSQL adapter for UserProfiles