Fixed a bug while saving books to the database
Minor update to date formatting