Enhanced session security
Added raw query mode, for special instances