Support of SMS Message history

Lookup in inbox and sentbox tables