Changed "not null" sql to be posture compatible