rework of file system

had to redo the db migrations becuase I had them wrong before