improve getUsers method; this and the other repository methods now populate the user.id field