fix setting NULL values into nullable fields

When trying to set a nullable field to `NULL` i noticed that the field get filled with empty instead of the real `NULL` in the db table.

This fixes it.