fix column type for postgresql