Minor refactoring of DbUserRepository