genetic sql connection; logger improvement

Connection to TradingDB works (timestamp is wrong)
problem in gmtime() not change %Z