Well I think you can avoid querying ALL of the books in the database looking for the current_profile and just look in the current_profile.books