finished functionality for storing with LinearFileDatabase.jav