New dump and prepare_database script