book database connection