Add Support For Local Database and Cache

Even though I work in “catalog mode” with all my apps, I can see reasons to have a “session mode” à la Cap One.

Nevertheless, some database maintenance is also needed in this mode.