If we hit failure while switching databases (db_main and db_backup). What should be the recovery mechanism or mitigation steps?