simplified db production level logic