Implemented more general sql functions in the controller
Merge branch 'master' of github.com:Erotemic/ibeis