Fixing search, bookdetails, models, and database