added BookToDB function