Tweak to sql so tests pass