This fixes #88
Merge pull request #89 from jamesrwhite/fix-sqlite-bug-#88

This fixes #88