added switch to allow local database pw to be different from live - changed instances of <? to <?php as these not understood on local WAMP server version