Cache the current database.

Another piece of #8.