update to v2 sql api
Merge pull request #27 from danpaz/master

update to v2 sql api