tool now working but is committing changes to db