Connected db to book queries to save searching user and book id