Code to persist or update the yang model subscription into db