fixed single sql agg.
Merge pull request #62 from alexanderson/master

fixed single sql agg.