saving subscription id in database