Added more methods to the user repository

Also changed Note.findById to Note.getById