update dblogger.
generate a sql script instead of connect to mysql.