Add db structure dump. Closes #1