tracking sql to generate the db and populate with data