Add the file_type table and the update the file table
Pep8 fix
Move and improve the script to initialize the database