dump_database, doesn't prettyprint