add support for sqlite
make where easier to read