modified the database and modified the upload files