Database failover scripts for Drupal and Wordpress