Fix file reading and database format
Add getDateStr() method to Book class