change manager._db to support multidb