Correctly fixed sms backup duplicate entry queries