change `determine_filetype` to save hook in model
add rake task for updating filetypes