bookcatalog using database