made changes to sqldialect for clarity, more tests for skip, having, order by