Merge "Database: Support parenthesized JOINs"