cleanup for exit, stubs for more databases, etc