Implementing query filtering with options of limit, offset and sort, small refactoring of route (book => books)