Adding code to handle dumping a database