connect, retrieve activities, insert in database and display summaries