add book model and get_books function