dump a database, statistical calculation library