fix sqlite dialect problems
Merge pull request #1 from furtherLee/master

meow