Problems with file upload but fixed the models and remade the database