Misc
First draft of a completion cache:

Each database (main, temp, ...) has its own cache versioned.
Tables and views are indexed by lowercase name.