Fixing regex used to parse table info

The old regex trimmed all text after the first ')' it found - this changes to trim text after the last ')'.  This was problematic if you had a table definition that includes something like "VARCHAR (32)", and was causing problems with the indexes set by persistencejs