Remember opened databases on quit.

Refs #36