syncAppMetadata function

Update deployment records