Issue 338 fix

Connection was not being recorded when port was being deleted. 

Edited the "RecordModels" method to record for modification,creation and deleteion.

Added code to record the deleted connection also.