move file extension saving into migration
Merge branch '330-file_extensions_in_database' into develop