Restored some SQL functions that were referenced.
Restored some SQL functions that were referenced.

Also simplified the function lookup a bit.

drostron/quasar,quasar-analytics/quasar,djspiewak/quasar,slamdata/quasar,quasar-analytics/quasar,drostron/quasar,quasar-analytics/quasar,jedesah/Quasar,slamdata/slamengine,jedesah/Quasar,quasar-analytics/quasar,slamdata/slamengine,drostron/quasar,jedesah/Quasar,jedesah/Quasar,drostron/quasar,slamdata/slamengine