completed functionality for uploading a file to add to the database and todo list