Set types
Write to database on both create and edit
Write to the database only on create
Write to the database only on edit
Do not set data
Set types