improve sqlite dialect (not tested yet)