Fixed EditBag data references

ok I finally was able to get the correct data out of both the database
and the tables to compare and there are descriptive debug statements and
the conditions are all set up. All that is left for this is to do the
actual edits to the database