store activities in the db