fixed sms backup duplicate entry queries