save file type in db