Datatbase setup with book rest api.