added code for dumping all databases and all tables