added debug stuff to db converter