Added Ability to save empty fields with NULL instead of ''. That's important for foreign key constraints in the database that would cause a sql error
otherwise.