Database documentation

Documentation of the database format is very sparse and outdated. For example: Databases (wiki)

I reverse engineered the database format of Kodi 16 but I just upgraded to kodi 17 and all my scripts are broken now.

For example, in Kodi 16 there is a field in the tvshow table containing the “ID” of the show in http://thetvdb.com/. I can NOT find any reference of that data in the new database. Am I mistaken?. How can I access to that information?. I doubt that Kodi is doing a http://thetvdb.com/ search for each new episode.

Help!.

I have issues too with the movie database.

Could be possible if somebody documented the KODI 17 database format, at least episodes/tvshows and movies?. That document can be annotated with a “we are NOT committed to this schema in kodi 18 and up”.

If that is not possible, who can I ask about particular fields of the database?.

Please!

Thanks.