Respect NULL and integer values when exporting db data