script to generate track database