Ensure that the uri exists in the DB before updating
Use the correct variable
Merge pull request #3 from mfairchild365/master

Ensure that the uri exists in the DB before updating