fix issue with live sniffer in cloud mode
fix database independent escape method