Committing fixes to agent insert and adding relation deletion to jdbc registry code.