copy pmssql.py
Solved NULL result of pymssql on sid:

$ apt-get purge python-pymssql
$ apt-get install freetds-dev
$ pip install Cython
$ pip install pymssql
print datetime
write output to json