checks if the postdata is being passed before updating the metadata. if no postdata is sent, delete the metadata. does this for both meta keys