added database functionality for books
added get function to BookDAO implementation