Querying design data in a constraint database