add mysql proxy for querying external databases
fix bug making mysql statement not take first row
fix sql injection vulnerability