Index: src/webapp/webclient/javascript/main.js
===================================================================
--- src/webapp/webclient/javascript/main.js	(revision 00a88005332fa72990007fb7bb5d0f4a6936ac8e)
+++ src/webapp/webclient/javascript/main.js	(revision 22f7269c4158c73c67f9d53051a5e9043b9aa641)
@@ -28,4 +28,8 @@
 
 function displayDataSet(data){
+	if(!Array.isArray(data)){
+		console.log("No data array returned!");
+		return;
+	}
 	if(!("lastvalid" in data)){
 			console.log("No last valid values given!");
@@ -119,5 +123,5 @@
 	displayDataGet();
 	setInterval(displayDataGet, 10000);
-	
+
 	$.getJSON("../webservice/tileserver.php?/map.json", mapSetup);
 	
Index: src/webapp/webservice/inc/Config.php
===================================================================
--- src/webapp/webservice/inc/Config.php	(revision 00a88005332fa72990007fb7bb5d0f4a6936ac8e)
+++ src/webapp/webservice/inc/Config.php	(revision 22f7269c4158c73c67f9d53051a5e9043b9aa641)
@@ -1,5 +1,5 @@
 <?php
 /*
-    Copyright (C) 2016 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+    Copyright (C) 2016 - 2017 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
 
     This program is free software: you can redistribute it and/or modify
@@ -35,7 +35,7 @@
 
 	public function databaseFile(){
-		return $this->dataDirectory() ."log-webservice.rrd";
+		return $this->dataDirectory() ."gnuboat.rrd";
 	}
-	
+
 	public function shutdownRequestFile(){
 		if(array_key_exists("shutdownfile", $this->_config))
@@ -43,5 +43,5 @@
 		return "/var/spool/gnuboat/shutdown.request";
 	}
-	
+
 	public function dataDirectory(){
 		if(array_key_exists("datadirectory", $this->_config))
@@ -49,5 +49,5 @@
 		return "/var/lib/gnuboat/";
 	}
-	
+
 	private static function addTrailingSlash($path){
 		$length = strlen($path);
@@ -57,5 +57,5 @@
 		return $path;
 	}
-	
+
 	private $_config;
 }
Index: src/webapp/webservice/index.php
===================================================================
--- src/webapp/webservice/index.php	(revision 00a88005332fa72990007fb7bb5d0f4a6936ac8e)
+++ src/webapp/webservice/index.php	(revision 22f7269c4158c73c67f9d53051a5e9043b9aa641)
@@ -16,4 +16,6 @@
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
+
+xdebug_start_trace();
 
 require_once(__DIR__ ."/inc/Config.php");
@@ -68,11 +70,14 @@
 	$lastTime = -1;
 	$keys = array_keys($data);
-	if(count($keys) < 0 ){
+	$keyTimeframes = $keys[0];
+	$itemCount = count($keys);
+	if($itemCount < 0 ){
 		error_log("No keys in fetched rrd data from ". $dbFile);
 		echo json_encode("");
 		exit;
 	}
+	$timeframesCount = count($data[$keyTimeframes]);
 	if($debug > 0){
-		echo "<p>Variables: ". count($keys) ."; Timeframes: ". count($data[$keys[0]]) ."</p>\n";
+		echo "<p>Variables: ". $itemCount ."; Timeframes: ". $timeframesCount ."</p>\n";
 	}
 	foreach($data[$keys[0]] as $timeframe => $value){
@@ -185,3 +190,5 @@
 }
 
+xdebug_stop_trace();
+
 ?>
Index: src/webapp/webservice/tileserver.php
===================================================================
--- src/webapp/webservice/tileserver.php	(revision 00a88005332fa72990007fb7bb5d0f4a6936ac8e)
+++ src/webapp/webservice/tileserver.php	(revision 22f7269c4158c73c67f9d53051a5e9043b9aa641)
@@ -294,5 +294,5 @@
       $this->db = new PDO('sqlite:' . $tileset, '', '', array(PDO::ATTR_PERSISTENT => true));
     } catch (Exception $exc) {
-      echo $exc->getTraceAsString();
+      error_log($exc->getTraceAsString());
       die;
     }
@@ -300,5 +300,5 @@
     if (!isset($this->db)) {
       header('Content-type: text/plain');
-      echo 'Incorrect tileset name: ' . $tileset;
+      error_log('Incorrect tileset name: ' . $tileset);
       die;
     }
@@ -401,5 +401,5 @@
     } else {
       header('HTTP/1.1 404 Not Found');
-      echo 'Server: Unknown or not specified dataset "' . $tileset . '"';
+      error_log('Server: Unknown or not specified dataset "' . $tileset . '"');
       die;
     }
