(ITS#8831) Database flags reset in mdb_load