save books to db