idb: Implement SCHEMA description query function

Signed-off-by: Michal Novotny <mignov@gmail.com>