msi: Validate database fields before inserting them.