Added server connection check to increase site loading speed when testing on local database.