Sql change

Hey Dante,

I was running some test vnc back to the main env, but did not noticed you already switched it to svn, so it is not actually ran against my code.

I am about to leave office soon, so need you to run this for me.  This is a two commits change, it supposes to be an improvement, I need to know how much it is.

Just run two tests, one before my changes, one after them. You can just use this branch or rebase it to latest, not a big deal, I only care the perf diff caused by this change.

Email me when you get this.

Thanks