Added exception handling to LinearFileDatabase.java