CUBRID Updates & parsesql fixes

These changes make CDE much better for use with CUBRID and parsesql is
more robust for translating