add metadata record to layer