Can now select users from the database
Refactoring repository code a bit