Moved the file storage to the DB. Started modifying file access functions to use files from DB.