Register activities in database