added API function  to get all the books from the Database

Added API function, books, which help get all the books that are in the
Database and return a JSON array of those books.