add mysqldb code for temp logger - needs to be converted to connector for py3