Used file to upload data to database.