Database new with flag