Add function to update the metadata on server