Replaced holds_all/2 with holds_all/1 without explicit time.
Added state/1 to the dynamic database.