properly write NULL values in postgres provider