Make sqlite handle undefined as nulls