Add graceful shutdown to database manager, new Static.ShutdownChan to replace doneChan instances