performs fileToList in the constructor and added the method to convert a
ListToFile and edited setRecord to actually write the record back into
the database with the encryption