mds-kbdc: working on transing mapping statements into trees

Signed-off-by: Mattias Andrée <maandree@operamail.com>