This is sweet. If you're interested, I'd be happy to help out with your todo to integrate with a local database. Getting the rate-limiting and retries right can be a little tricky but it's been on my list to add Gmail support to AspenDB https://github.com/aspen-cloud/aspen-cli.