almost the last of our sql class functions (next step is exceptions)
Merge branch 'master' of https://github.com/sl8tr/gateway