enabled debugging output

and bugfix: capitalized table names