new query interface: sqlite integration