Error handling in iameta

Still need to log errors somewhere but this handles errors reading the meta data and updating the db. 
@russellholt @jbarrett 
I still think renaming should happen first before anything else, not as a failure condition