Add update ability to rmds. Make some metadata/ingest functions more generic so they can be reused.