Made dump_db take arbitrary extra arguments