If you have 2 hosting accounts, its a good idea to replicate or backup your database between them. I have been doing this for a while, a cron jobbacks up between servers each hour. Sometimes my database goes down, and i figured it would be a good idea to make indexU use the other database if a connection fails.
This is a simple way to achive this :
In application.php do this :
// primary :
$dbHostname = "existingdatabase";
$dbUsername = "existingusername";
$dbPassword = "existingpass";
$dbName = "existingname";
$dbconnect=mysql_select_db($dbName, mysql_connect($dbHostname,$dbUsername,$dbPassword) );
if (!$dbconnect) {
$dbServer = "mysql";
$dbHostname = "yourdomain.com";
$dbUsername = "username 1";
$dbPassword = "password 1";
$dbName = "database name 1";
}
as soon as database 1 fails to connect, database 2 is used. One small problem is any database changes made during the time DB1 is down will be lost, however if you added some code to add.php that checked which hostname you were using (if != whatever) then you can just send users to an error page to avoid this.
Just thought it maybe useful to someone.


Thanks for the tip
