#tested two times of the script not yet tested for saving data in the db.