There are some caveats about using external database tools with Gramps.
See this thread where someone was trying to use database tools on exported compressed XML data. After redirecting them to the database files, the discussion wanders to caveats & direct access alternatives.