Add script to query DB and the DB itself