book model and database creation