sqlite compatibility
cleanup
Merge pull request #2 from mrooney/master

sqlite compatibility