Fix scheduler trying to connect to none existent databases and amend startupdating.php to use accountid as per George's previous commit.