Squashed PR 642

Normalizes predecessor data too

Deletes invalid work package custom values

Fixes delete statement for MySQL

Fixes spec