Delete references from the counters table

Currently, clusto can't delete things properly if counters reference it and there are foreign key constraints at the database level, because it doesn't correctly delete counter associated with an entity.