refactored dml conditions to own class