added a script to dump the current database