Modified index.php file for use on server (getConnection() server details)