SMS archiving and control
2 options come to mind.


Export sms to text file and upload the text file to a cloud service.
In your application, you would need to recognize when the user wants to load older messages, maybe an onScroll event or maybe a "Load More" button etc...
Store SMS entirely on cloud services.
Only load the sms from a cloud, and upload whenever you receive a message.
The application purely loads the sms list as a ListView from the content returned by the server.


Using PHP and SQL as the server API would work to build your own server.