simplify query to retrieve all user achievements in user_achievements controller