Fix sequel migration

Due to mixing order of the uuid and id on various places, there were
issues such as:

     DETAIL: Key columns "execution_plan_uuid" and "id" are of
     incompatible types: character and integer.

Basically, it tried to map the uuid to action id and vice-verse.
Merge pull request #32 from iNecas/fix-sequel-migration

Fix sequel migration