Fix DB.opened flag.