TinyDB can't be seen by anyone else than the holder of the phone.
So a library patron needs an online database that can be updated by the library and made visible to patrons looking for books.
The library problem can be compared to this NYC Marathon runner tracker app, with books instead of runners and borrowers or library shelves for current runner (book) locations.