Fix adding of books in newdb