added funciton to check current status of subscription and record in db.