data-to-spacy with custom db plugin

Hi! How does your database plugin work under the hood, does it register the database via entry points, or are you using a custom recipe that changes the database and returns it via the components?

It looks like Prodigy's connect() helper ends up connecting to the default SQLite database instead of your custom one. If the database is registered via entry points, Prodigy should be able to find it automatically if your custom database ID is set in your prodigy.json. If not, that's definitely confusing.

If you've been using a custom recipe that implements the custom database, the problem is that data-to-spacy will connect to the default database. So you could either edit the recipe to load from your custom DB instead, or wrap your custom DB as a Python package and make it expose your database class via an entry point so Prodigy can find it by string name (see this thread for some background).