Add config example and mysql logging code