Add feature for dumping particular tables and refactor dump call stack