save books into db