Rewritable lookups using an in-process database