see https://github.com/ankidroid/Anki-Android/wiki/Database-Structure for a more maintained version of this