First build for text message views and database retrieval