zrivest/smart_groups — pull request #1 by zrivest (2013-11-08 21:56:43+00:00)
Title: fixed postgresql problem

I know it's the wrong name for the commit, but came across this problem and fixed it. used same commit so that we could move forward.