Changed rebuild.php to connect once per sql file; changed a test to reflect the new order of regions