Redesigned the way the admin server library maintain state of a database whose code host terminate and need to be restarted.