Added new ResultSet code to manage cleaning data on updates/creates

Main code rev. 1940