uses sqlite fir lookups