Schedule actions

Adding schedule functionality: schema/tables, actions and matching tests.