Updated activity schema

Turned actions into keyed array