reading the imported file and save to the db