bash script to rebuild a drupal site from a local or remote database