Found a bug on insert. CPeriod is not correctly sent to the database