scripts to pull data from the db