write to sms table if status change