Added DB debug commands.
Merge branch 'test' into dev