script that updates dbs nightly