script for restoring dumped db