Fix error causing SQLException when book_id ends in X.
Cleanup formatting