Cmdb cleanup

* Generalised the table logic in cmdb
* Added two searches for cleanup purposes (CIs without relations, CIs with duplicate names)