Sequential compression, random id for the file, moving it, database modification