WIP - debugging db tables