check extrafields before inserting in DB