similar to trackermain.py but with pysql and playing with plotting