WIP: error handling in iameta

Still need to log errors somewhere but this handles errors reading the meta data and updating the db. 
@russellholt @jbarrett