API for Magic: the gathering database