mysql correctness bug fixes
mysql correctness bug fixes

also fixed bug with running queries with vhost user (escape escaping
problem)

devpanel/serverlink,devpanel/serverlink,devpanel/serverlink,devpanel/serverlink,devpanel/serverlink