uploadScript for DB