added script to dump database