added database access and narrative Activity