Fix bug in get_onhand_books function.
Add last_book function in user.