Add dumpDb method for dumping by table