diff --git a/Wetterstation/App.config b/Wetterstation/App.config
index 56efbc7b5f15b5166cc89dae0406895b57de0b67..7f2951ed65d1746d84d11c5a1ca5328ad506abd8 100644
--- a/Wetterstation/App.config
+++ b/Wetterstation/App.config
@@ -1,5 +1,8 @@
 <?xml version="1.0" encoding="utf-8" ?>
 <configuration>
+  <connectionStrings>
+    <add name="Default" connectionString="Data Source=.\frontend.db;Version=3;" providerName="System.Data.SqlClient" />
+  </connectionStrings>
     <startup> 
         <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
     </startup>
diff --git a/Wetterstation/Settings.Designer.cs b/Wetterstation/Settings.Designer.cs
index 1e4509977fdc39c5f3394b2cc6453a6be852b36e..46fce461f22fc06e7b7264b2c9f1817983925526 100644
--- a/Wetterstation/Settings.Designer.cs
+++ b/Wetterstation/Settings.Designer.cs
@@ -29,25 +29,25 @@
         private void InitializeComponent()
         {
             this.lbSettingsHost = new System.Windows.Forms.Label();
-            this.tbSettingsHost = new System.Windows.Forms.TextBox();
+            this.tbHost = new System.Windows.Forms.TextBox();
             this.lbSettingsPort = new System.Windows.Forms.Label();
-            this.tbSettingsPort = new System.Windows.Forms.TextBox();
-            this.lbSettingsClient = new System.Windows.Forms.Label();
-            this.tbSettingsClient = new System.Windows.Forms.TextBox();
-            this.tbSettingsUser = new System.Windows.Forms.TextBox();
-            this.lbSettingsUser = new System.Windows.Forms.Label();
-            this.lbSettingsPasswort = new System.Windows.Forms.Label();
-            this.textBox1 = new System.Windows.Forms.TextBox();
-            this.lbPlatzhalter1 = new System.Windows.Forms.Label();
-            this.tbPlatzhalter1 = new System.Windows.Forms.TextBox();
-            this.lbPlatzhalter2 = new System.Windows.Forms.Label();
-            this.tbPlatzhalter2 = new System.Windows.Forms.TextBox();
-            this.lbSettingsOrt = new System.Windows.Forms.Label();
-            this.textBox3 = new System.Windows.Forms.TextBox();
-            this.lbSettingsLand = new System.Windows.Forms.Label();
-            this.tbSettingsLand = new System.Windows.Forms.TextBox();
+            this.tbPort = new System.Windows.Forms.TextBox();
+            this.lbUser = new System.Windows.Forms.Label();
+            this.tbUser = new System.Windows.Forms.TextBox();
+            this.tbPasswort = new System.Windows.Forms.TextBox();
+            this.lbPasswort = new System.Windows.Forms.Label();
+            this.lbFrontend = new System.Windows.Forms.Label();
+            this.tbTopicFrontend = new System.Windows.Forms.TextBox();
+            this.lbBackend = new System.Windows.Forms.Label();
+            this.tbTobicBackend = new System.Windows.Forms.TextBox();
+            this.lbQos = new System.Windows.Forms.Label();
+            this.tbQos = new System.Windows.Forms.TextBox();
+            this.lbTimeout = new System.Windows.Forms.Label();
+            this.tbTimeout = new System.Windows.Forms.TextBox();
+            this.lbPlz = new System.Windows.Forms.Label();
+            this.tbPlz = new System.Windows.Forms.TextBox();
             this.lblFrontendId = new System.Windows.Forms.Label();
-            this.btSichern = new System.Windows.Forms.Button();
+            this.btnSave = new System.Windows.Forms.Button();
             this.SuspendLayout();
             // 
             // lbSettingsHost
@@ -59,22 +59,21 @@
             this.lbSettingsHost.ForeColor = System.Drawing.Color.DarkSlateGray;
             this.lbSettingsHost.Location = new System.Drawing.Point(28, 50);
             this.lbSettingsHost.Name = "lbSettingsHost";
-            this.lbSettingsHost.Size = new System.Drawing.Size(43, 16);
+            this.lbSettingsHost.Size = new System.Drawing.Size(54, 24);
             this.lbSettingsHost.TabIndex = 0;
-            this.lbSettingsHost.Text = "Host()";
-            this.lbSettingsHost.Click += new System.EventHandler(this.LbSettingsHost_Click);
+            this.lbSettingsHost.Text = "Host";
             // 
-            // tbSettingsHost
+            // tbHost
             // 
-            this.tbSettingsHost.Anchor = System.Windows.Forms.AnchorStyles.None;
-            this.tbSettingsHost.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.tbSettingsHost.Location = new System.Drawing.Point(28, 65);
-            this.tbSettingsHost.MaximumSize = new System.Drawing.Size(300, 25);
-            this.tbSettingsHost.MinimumSize = new System.Drawing.Size(300, 15);
-            this.tbSettingsHost.Name = "tbSettingsHost";
-            this.tbSettingsHost.Size = new System.Drawing.Size(300, 25);
-            this.tbSettingsHost.TabIndex = 4;
-            this.tbSettingsHost.TextChanged += new System.EventHandler(this.TbSettingsHost_TextChanged);
+            this.tbHost.Anchor = System.Windows.Forms.AnchorStyles.None;
+            this.tbHost.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.tbHost.Location = new System.Drawing.Point(13, 96);
+            this.tbHost.Margin = new System.Windows.Forms.Padding(4);
+            this.tbHost.MinimumSize = new System.Drawing.Size(399, 30);
+            this.tbHost.Name = "tbHost";
+            this.tbHost.Size = new System.Drawing.Size(399, 35);
+            this.tbHost.TabIndex = 4;
+            this.tbHost.TextChanged += new System.EventHandler(this.TbSettingsHost_TextChanged);
             // 
             // lbSettingsPort
             // 
@@ -89,189 +88,187 @@
             this.lbSettingsPort.TabIndex = 5;
             this.lbSettingsPort.Text = "Port (1883)";
             // 
-            // tbSettingsPort
-            // 
-            this.tbSettingsPort.Anchor = System.Windows.Forms.AnchorStyles.None;
-            this.tbSettingsPort.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.tbSettingsPort.Location = new System.Drawing.Point(28, 115);
-            this.tbSettingsPort.MaximumSize = new System.Drawing.Size(300, 25);
-            this.tbSettingsPort.MinimumSize = new System.Drawing.Size(300, 15);
-            this.tbSettingsPort.Name = "tbSettingsPort";
-            this.tbSettingsPort.Size = new System.Drawing.Size(300, 25);
-            this.tbSettingsPort.TabIndex = 6;
-            // 
-            // lbSettingsClient
-            // 
-            this.lbSettingsClient.Anchor = System.Windows.Forms.AnchorStyles.None;
-            this.lbSettingsClient.AutoSize = true;
-            this.lbSettingsClient.BackColor = System.Drawing.Color.Transparent;
-            this.lbSettingsClient.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.lbSettingsClient.ForeColor = System.Drawing.Color.DarkSlateGray;
-            this.lbSettingsClient.Location = new System.Drawing.Point(28, 150);
-            this.lbSettingsClient.Name = "lbSettingsClient";
-            this.lbSettingsClient.Size = new System.Drawing.Size(140, 16);
-            this.lbSettingsClient.TabIndex = 7;
-            this.lbSettingsClient.Text = "Client (DVES 06236C)";
-            this.lbSettingsClient.Click += new System.EventHandler(this.LbSettingsClient_Click);
-            // 
-            // tbSettingsClient
-            // 
-            this.tbSettingsClient.Anchor = System.Windows.Forms.AnchorStyles.None;
-            this.tbSettingsClient.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.tbSettingsClient.Location = new System.Drawing.Point(28, 165);
-            this.tbSettingsClient.MaximumSize = new System.Drawing.Size(300, 25);
-            this.tbSettingsClient.MinimumSize = new System.Drawing.Size(300, 15);
-            this.tbSettingsClient.Name = "tbSettingsClient";
-            this.tbSettingsClient.Size = new System.Drawing.Size(300, 25);
-            this.tbSettingsClient.TabIndex = 8;
-            this.tbSettingsClient.TextChanged += new System.EventHandler(this.TbSettingsClient_TextChanged);
-            // 
-            // tbSettingsUser
-            // 
-            this.tbSettingsUser.Anchor = System.Windows.Forms.AnchorStyles.None;
-            this.tbSettingsUser.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.tbSettingsUser.Location = new System.Drawing.Point(28, 215);
-            this.tbSettingsUser.MaximumSize = new System.Drawing.Size(300, 25);
-            this.tbSettingsUser.MinimumSize = new System.Drawing.Size(300, 15);
-            this.tbSettingsUser.Name = "tbSettingsUser";
-            this.tbSettingsUser.Size = new System.Drawing.Size(300, 25);
-            this.tbSettingsUser.TabIndex = 9;
-            // 
-            // lbSettingsUser
-            // 
-            this.lbSettingsUser.Anchor = System.Windows.Forms.AnchorStyles.None;
-            this.lbSettingsUser.AutoSize = true;
-            this.lbSettingsUser.BackColor = System.Drawing.Color.Transparent;
-            this.lbSettingsUser.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.lbSettingsUser.ForeColor = System.Drawing.Color.DarkSlateGray;
-            this.lbSettingsUser.Location = new System.Drawing.Point(28, 200);
-            this.lbSettingsUser.Name = "lbSettingsUser";
-            this.lbSettingsUser.Size = new System.Drawing.Size(115, 16);
-            this.lbSettingsUser.TabIndex = 10;
-            this.lbSettingsUser.Text = "User (DVES User)";
-            this.lbSettingsUser.Click += new System.EventHandler(this.LbSettingsUser_Click);
-            // 
-            // lbSettingsPasswort
-            // 
-            this.lbSettingsPasswort.Anchor = System.Windows.Forms.AnchorStyles.None;
-            this.lbSettingsPasswort.AutoSize = true;
-            this.lbSettingsPasswort.BackColor = System.Drawing.Color.Transparent;
-            this.lbSettingsPasswort.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.lbSettingsPasswort.ForeColor = System.Drawing.Color.DarkSlateGray;
-            this.lbSettingsPasswort.Location = new System.Drawing.Point(28, 250);
-            this.lbSettingsPasswort.Name = "lbSettingsPasswort";
-            this.lbSettingsPasswort.Size = new System.Drawing.Size(80, 16);
-            this.lbSettingsPasswort.TabIndex = 11;
-            this.lbSettingsPasswort.Text = "Password #";
-            // 
-            // textBox1
-            // 
-            this.textBox1.Anchor = System.Windows.Forms.AnchorStyles.None;
-            this.textBox1.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.textBox1.Location = new System.Drawing.Point(29, 265);
-            this.textBox1.MaximumSize = new System.Drawing.Size(300, 25);
-            this.textBox1.MinimumSize = new System.Drawing.Size(300, 15);
-            this.textBox1.Name = "textBox1";
-            this.textBox1.Size = new System.Drawing.Size(300, 25);
-            this.textBox1.TabIndex = 12;
-            // 
-            // lbPlatzhalter1
-            // 
-            this.lbPlatzhalter1.Anchor = System.Windows.Forms.AnchorStyles.None;
-            this.lbPlatzhalter1.AutoSize = true;
-            this.lbPlatzhalter1.BackColor = System.Drawing.Color.Transparent;
-            this.lbPlatzhalter1.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.lbPlatzhalter1.ForeColor = System.Drawing.Color.DarkSlateGray;
-            this.lbPlatzhalter1.Location = new System.Drawing.Point(28, 300);
-            this.lbPlatzhalter1.Name = "lbPlatzhalter1";
-            this.lbPlatzhalter1.Size = new System.Drawing.Size(84, 16);
-            this.lbPlatzhalter1.TabIndex = 13;
-            this.lbPlatzhalter1.Text = "Platzhalter1";
-            // 
-            // tbPlatzhalter1
-            // 
-            this.tbPlatzhalter1.Anchor = System.Windows.Forms.AnchorStyles.None;
-            this.tbPlatzhalter1.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.tbPlatzhalter1.Location = new System.Drawing.Point(28, 315);
-            this.tbPlatzhalter1.MaximumSize = new System.Drawing.Size(300, 25);
-            this.tbPlatzhalter1.MinimumSize = new System.Drawing.Size(300, 15);
-            this.tbPlatzhalter1.Name = "tbPlatzhalter1";
-            this.tbPlatzhalter1.Size = new System.Drawing.Size(300, 25);
-            this.tbPlatzhalter1.TabIndex = 14;
-            // 
-            // lbPlatzhalter2
-            // 
-            this.lbPlatzhalter2.Anchor = System.Windows.Forms.AnchorStyles.None;
-            this.lbPlatzhalter2.AutoSize = true;
-            this.lbPlatzhalter2.BackColor = System.Drawing.Color.Transparent;
-            this.lbPlatzhalter2.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.lbPlatzhalter2.ForeColor = System.Drawing.Color.DarkSlateGray;
-            this.lbPlatzhalter2.Location = new System.Drawing.Point(28, 350);
-            this.lbPlatzhalter2.Name = "lbPlatzhalter2";
-            this.lbPlatzhalter2.Size = new System.Drawing.Size(84, 16);
-            this.lbPlatzhalter2.TabIndex = 15;
-            this.lbPlatzhalter2.Text = "Platzhalter2";
-            // 
-            // tbPlatzhalter2
-            // 
-            this.tbPlatzhalter2.Anchor = System.Windows.Forms.AnchorStyles.None;
-            this.tbPlatzhalter2.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.tbPlatzhalter2.Location = new System.Drawing.Point(28, 365);
-            this.tbPlatzhalter2.MaximumSize = new System.Drawing.Size(300, 25);
-            this.tbPlatzhalter2.MinimumSize = new System.Drawing.Size(300, 15);
-            this.tbPlatzhalter2.Name = "tbPlatzhalter2";
-            this.tbPlatzhalter2.Size = new System.Drawing.Size(300, 25);
-            this.tbPlatzhalter2.TabIndex = 16;
-            this.tbPlatzhalter2.TextChanged += new System.EventHandler(this.TextBox2_TextChanged);
-            // 
-            // lbSettingsOrt
-            // 
-            this.lbSettingsOrt.Anchor = System.Windows.Forms.AnchorStyles.None;
-            this.lbSettingsOrt.AutoSize = true;
-            this.lbSettingsOrt.BackColor = System.Drawing.Color.Transparent;
-            this.lbSettingsOrt.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.lbSettingsOrt.ForeColor = System.Drawing.Color.DarkSlateGray;
-            this.lbSettingsOrt.Location = new System.Drawing.Point(28, 400);
-            this.lbSettingsOrt.Name = "lbSettingsOrt";
-            this.lbSettingsOrt.Size = new System.Drawing.Size(77, 16);
-            this.lbSettingsOrt.TabIndex = 17;
-            this.lbSettingsOrt.Text = "Stadt / PLZ";
-            // 
-            // textBox3
-            // 
-            this.textBox3.Anchor = System.Windows.Forms.AnchorStyles.None;
-            this.textBox3.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.textBox3.Location = new System.Drawing.Point(28, 415);
-            this.textBox3.MaximumSize = new System.Drawing.Size(300, 25);
-            this.textBox3.MinimumSize = new System.Drawing.Size(300, 15);
-            this.textBox3.Name = "textBox3";
-            this.textBox3.Size = new System.Drawing.Size(300, 25);
-            this.textBox3.TabIndex = 18;
-            // 
-            // lbSettingsLand
-            // 
-            this.lbSettingsLand.Anchor = System.Windows.Forms.AnchorStyles.None;
-            this.lbSettingsLand.AutoSize = true;
-            this.lbSettingsLand.BackColor = System.Drawing.Color.Transparent;
-            this.lbSettingsLand.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.lbSettingsLand.ForeColor = System.Drawing.Color.DarkSlateGray;
-            this.lbSettingsLand.Location = new System.Drawing.Point(28, 450);
-            this.lbSettingsLand.Name = "lbSettingsLand";
-            this.lbSettingsLand.Size = new System.Drawing.Size(137, 16);
-            this.lbSettingsLand.TabIndex = 19;
-            this.lbSettingsLand.Text = "Länderkennung (DE)";
-            this.lbSettingsLand.Click += new System.EventHandler(this.Label1_Click);
-            // 
-            // tbSettingsLand
-            // 
-            this.tbSettingsLand.Anchor = System.Windows.Forms.AnchorStyles.None;
-            this.tbSettingsLand.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.tbSettingsLand.Location = new System.Drawing.Point(28, 465);
-            this.tbSettingsLand.MaximumSize = new System.Drawing.Size(300, 25);
-            this.tbSettingsLand.MinimumSize = new System.Drawing.Size(300, 15);
-            this.tbSettingsLand.Name = "tbSettingsLand";
-            this.tbSettingsLand.Size = new System.Drawing.Size(300, 25);
-            this.tbSettingsLand.TabIndex = 20;
+            // tbPort
+            // 
+            this.tbPort.Anchor = System.Windows.Forms.AnchorStyles.None;
+            this.tbPort.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.tbPort.Location = new System.Drawing.Point(13, 172);
+            this.tbPort.Margin = new System.Windows.Forms.Padding(4);
+            this.tbPort.MinimumSize = new System.Drawing.Size(399, 30);
+            this.tbPort.Name = "tbPort";
+            this.tbPort.Size = new System.Drawing.Size(399, 35);
+            this.tbPort.TabIndex = 6;
+            // 
+            // lbUser
+            // 
+            this.lbUser.AutoSize = true;
+            this.lbUser.BackColor = System.Drawing.Color.Transparent;
+            this.lbUser.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.lbUser.ForeColor = System.Drawing.Color.White;
+            this.lbUser.Location = new System.Drawing.Point(31, 229);
+            this.lbUser.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.lbUser.Name = "lbUser";
+            this.lbUser.Size = new System.Drawing.Size(54, 24);
+            this.lbUser.TabIndex = 7;
+            this.lbUser.Text = "User";
+            // 
+            // tbUser
+            // 
+            this.tbUser.Anchor = System.Windows.Forms.AnchorStyles.None;
+            this.tbUser.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.tbUser.Location = new System.Drawing.Point(15, 252);
+            this.tbUser.Margin = new System.Windows.Forms.Padding(4);
+            this.tbUser.MinimumSize = new System.Drawing.Size(399, 30);
+            this.tbUser.Name = "tbUser";
+            this.tbUser.Size = new System.Drawing.Size(399, 35);
+            this.tbUser.TabIndex = 8;
+            // 
+            // tbPasswort
+            // 
+            this.tbPasswort.Anchor = System.Windows.Forms.AnchorStyles.None;
+            this.tbPasswort.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.tbPasswort.Location = new System.Drawing.Point(15, 333);
+            this.tbPasswort.Margin = new System.Windows.Forms.Padding(4);
+            this.tbPasswort.MinimumSize = new System.Drawing.Size(399, 30);
+            this.tbPasswort.Name = "tbPasswort";
+            this.tbPasswort.Size = new System.Drawing.Size(399, 35);
+            this.tbPasswort.TabIndex = 9;
+            // 
+            // lbPasswort
+            // 
+            this.lbPasswort.AutoSize = true;
+            this.lbPasswort.BackColor = System.Drawing.Color.Transparent;
+            this.lbPasswort.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.lbPasswort.ForeColor = System.Drawing.Color.White;
+            this.lbPasswort.Location = new System.Drawing.Point(31, 307);
+            this.lbPasswort.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.lbPasswort.Name = "lbPasswort";
+            this.lbPasswort.Size = new System.Drawing.Size(109, 24);
+            this.lbPasswort.TabIndex = 10;
+            this.lbPasswort.Text = "Passswort";
+            // 
+            // lbFrontend
+            // 
+            this.lbFrontend.AutoSize = true;
+            this.lbFrontend.BackColor = System.Drawing.Color.Transparent;
+            this.lbFrontend.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.lbFrontend.ForeColor = System.Drawing.Color.White;
+            this.lbFrontend.Location = new System.Drawing.Point(31, 390);
+            this.lbFrontend.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.lbFrontend.Name = "lbFrontend";
+            this.lbFrontend.Size = new System.Drawing.Size(154, 24);
+            this.lbFrontend.TabIndex = 11;
+            this.lbFrontend.Text = "Topic Frontend";
+            // 
+            // tbTopicFrontend
+            // 
+            this.tbTopicFrontend.Anchor = System.Windows.Forms.AnchorStyles.None;
+            this.tbTopicFrontend.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.tbTopicFrontend.Location = new System.Drawing.Point(13, 414);
+            this.tbTopicFrontend.Margin = new System.Windows.Forms.Padding(4);
+            this.tbTopicFrontend.MinimumSize = new System.Drawing.Size(399, 30);
+            this.tbTopicFrontend.Name = "tbTopicFrontend";
+            this.tbTopicFrontend.Size = new System.Drawing.Size(399, 35);
+            this.tbTopicFrontend.TabIndex = 12;
+            this.tbTopicFrontend.TextChanged += new System.EventHandler(this.TextBox1_TextChanged);
+            // 
+            // lbBackend
+            // 
+            this.lbBackend.AutoSize = true;
+            this.lbBackend.BackColor = System.Drawing.Color.Transparent;
+            this.lbBackend.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.lbBackend.ForeColor = System.Drawing.Color.White;
+            this.lbBackend.Location = new System.Drawing.Point(31, 480);
+            this.lbBackend.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.lbBackend.Name = "lbBackend";
+            this.lbBackend.Size = new System.Drawing.Size(150, 24);
+            this.lbBackend.TabIndex = 13;
+            this.lbBackend.Text = "Topic Backend";
+            // 
+            // tbTobicBackend
+            // 
+            this.tbTobicBackend.Anchor = System.Windows.Forms.AnchorStyles.None;
+            this.tbTobicBackend.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.tbTobicBackend.Location = new System.Drawing.Point(13, 503);
+            this.tbTobicBackend.Margin = new System.Windows.Forms.Padding(4);
+            this.tbTobicBackend.MinimumSize = new System.Drawing.Size(399, 30);
+            this.tbTobicBackend.Name = "tbTobicBackend";
+            this.tbTobicBackend.Size = new System.Drawing.Size(399, 35);
+            this.tbTobicBackend.TabIndex = 14;
+            // 
+            // lbQos
+            // 
+            this.lbQos.AutoSize = true;
+            this.lbQos.BackColor = System.Drawing.Color.Transparent;
+            this.lbQos.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.lbQos.ForeColor = System.Drawing.Color.White;
+            this.lbQos.Location = new System.Drawing.Point(29, 574);
+            this.lbQos.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.lbQos.Name = "lbQos";
+            this.lbQos.Size = new System.Drawing.Size(98, 24);
+            this.lbQos.TabIndex = 15;
+            this.lbQos.Text = "Mqtt Qos";
+            // 
+            // tbQos
+            // 
+            this.tbQos.Anchor = System.Windows.Forms.AnchorStyles.None;
+            this.tbQos.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.tbQos.Location = new System.Drawing.Point(12, 597);
+            this.tbQos.Margin = new System.Windows.Forms.Padding(4);
+            this.tbQos.MinimumSize = new System.Drawing.Size(399, 30);
+            this.tbQos.Name = "tbQos";
+            this.tbQos.Size = new System.Drawing.Size(399, 35);
+            this.tbQos.TabIndex = 16;
+            this.tbQos.TextChanged += new System.EventHandler(this.TextBox2_TextChanged);
+            // 
+            // lbTimeout
+            // 
+            this.lbTimeout.AutoSize = true;
+            this.lbTimeout.BackColor = System.Drawing.Color.Transparent;
+            this.lbTimeout.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.lbTimeout.ForeColor = System.Drawing.Color.White;
+            this.lbTimeout.Location = new System.Drawing.Point(28, 668);
+            this.lbTimeout.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.lbTimeout.Name = "lbTimeout";
+            this.lbTimeout.Size = new System.Drawing.Size(87, 24);
+            this.lbTimeout.TabIndex = 17;
+            this.lbTimeout.Text = "Timeout";
+            // 
+            // tbTimeout
+            // 
+            this.tbTimeout.Anchor = System.Windows.Forms.AnchorStyles.None;
+            this.tbTimeout.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.tbTimeout.Location = new System.Drawing.Point(15, 691);
+            this.tbTimeout.Margin = new System.Windows.Forms.Padding(4);
+            this.tbTimeout.MinimumSize = new System.Drawing.Size(399, 30);
+            this.tbTimeout.Name = "tbTimeout";
+            this.tbTimeout.Size = new System.Drawing.Size(399, 35);
+            this.tbTimeout.TabIndex = 18;
+            // 
+            // lbPlz
+            // 
+            this.lbPlz.AutoSize = true;
+            this.lbPlz.BackColor = System.Drawing.Color.Transparent;
+            this.lbPlz.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.lbPlz.ForeColor = System.Drawing.Color.White;
+            this.lbPlz.Location = new System.Drawing.Point(36, 754);
+            this.lbPlz.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.lbPlz.Name = "lbPlz";
+            this.lbPlz.Size = new System.Drawing.Size(64, 24);
+            this.lbPlz.TabIndex = 19;
+            this.lbPlz.Text = "CityId";
+            this.lbPlz.Click += new System.EventHandler(this.Label1_Click);
+            // 
+            // tbPlz
+            // 
+            this.tbPlz.Anchor = System.Windows.Forms.AnchorStyles.None;
+            this.tbPlz.Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.tbPlz.Location = new System.Drawing.Point(21, 781);
+            this.tbPlz.Margin = new System.Windows.Forms.Padding(4);
+            this.tbPlz.MinimumSize = new System.Drawing.Size(399, 30);
+            this.tbPlz.Name = "tbPlz";
+            this.tbPlz.Size = new System.Drawing.Size(399, 35);
+            this.tbPlz.TabIndex = 20;
             // 
             // lblFrontendId
             // 
@@ -286,44 +283,41 @@
             this.lblFrontendId.TabIndex = 21;
             this.lblFrontendId.Text = "Frontend Id:";
             // 
-            // btSichern
+            // btnSave
             // 
-            this.btSichern.BackColor = System.Drawing.Color.DarkGray;
-            this.btSichern.Cursor = System.Windows.Forms.Cursors.Hand;
-            this.btSichern.Font = new System.Drawing.Font("Arial Narrow", 9.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.btSichern.Location = new System.Drawing.Point(28, 552);
-            this.btSichern.Name = "btSichern";
-            this.btSichern.Size = new System.Drawing.Size(300, 34);
-            this.btSichern.TabIndex = 22;
-            this.btSichern.Text = "Daten übernehmen";
-            this.btSichern.UseVisualStyleBackColor = false;
-            this.btSichern.Click += new System.EventHandler(this.BtSichern_Click);
+            this.btnSave.Location = new System.Drawing.Point(503, 746);
+            this.btnSave.Name = "btnSave";
+            this.btnSave.Size = new System.Drawing.Size(191, 70);
+            this.btnSave.TabIndex = 22;
+            this.btnSave.Text = "Save Settings";
+            this.btnSave.UseVisualStyleBackColor = true;
+            this.btnSave.Click += new System.EventHandler(this.Button1_Click);
             // 
             // Settings
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.BackColor = System.Drawing.SystemColors.ScrollBar;
-            this.ClientSize = new System.Drawing.Size(361, 698);
-            this.Controls.Add(this.btSichern);
+            this.ClientSize = new System.Drawing.Size(757, 858);
+            this.Controls.Add(this.btnSave);
             this.Controls.Add(this.lblFrontendId);
-            this.Controls.Add(this.tbSettingsLand);
-            this.Controls.Add(this.lbSettingsLand);
-            this.Controls.Add(this.textBox3);
-            this.Controls.Add(this.lbSettingsOrt);
-            this.Controls.Add(this.tbPlatzhalter2);
-            this.Controls.Add(this.lbPlatzhalter2);
-            this.Controls.Add(this.tbPlatzhalter1);
-            this.Controls.Add(this.lbPlatzhalter1);
-            this.Controls.Add(this.textBox1);
-            this.Controls.Add(this.lbSettingsPasswort);
-            this.Controls.Add(this.lbSettingsUser);
-            this.Controls.Add(this.tbSettingsUser);
-            this.Controls.Add(this.tbSettingsClient);
-            this.Controls.Add(this.lbSettingsClient);
-            this.Controls.Add(this.tbSettingsPort);
+            this.Controls.Add(this.tbPlz);
+            this.Controls.Add(this.lbPlz);
+            this.Controls.Add(this.tbTimeout);
+            this.Controls.Add(this.lbTimeout);
+            this.Controls.Add(this.tbQos);
+            this.Controls.Add(this.lbQos);
+            this.Controls.Add(this.tbTobicBackend);
+            this.Controls.Add(this.lbBackend);
+            this.Controls.Add(this.tbTopicFrontend);
+            this.Controls.Add(this.lbFrontend);
+            this.Controls.Add(this.lbPasswort);
+            this.Controls.Add(this.tbPasswort);
+            this.Controls.Add(this.tbUser);
+            this.Controls.Add(this.lbUser);
+            this.Controls.Add(this.tbPort);
             this.Controls.Add(this.lbSettingsPort);
-            this.Controls.Add(this.tbSettingsHost);
+            this.Controls.Add(this.tbHost);
             this.Controls.Add(this.lbSettingsHost);
             this.Location = new System.Drawing.Point(500, 0);
             this.Margin = new System.Windows.Forms.Padding(2);
@@ -339,24 +333,24 @@
         #endregion
 
         private System.Windows.Forms.Label lbSettingsHost;
-        private System.Windows.Forms.TextBox tbSettingsHost;
+        private System.Windows.Forms.TextBox tbHost;
         private System.Windows.Forms.Label lbSettingsPort;
-        private System.Windows.Forms.TextBox tbSettingsPort;
-        private System.Windows.Forms.Label lbSettingsClient;
-        private System.Windows.Forms.TextBox tbSettingsClient;
-        private System.Windows.Forms.TextBox tbSettingsUser;
-        private System.Windows.Forms.Label lbSettingsUser;
-        private System.Windows.Forms.Label lbSettingsPasswort;
-        private System.Windows.Forms.TextBox textBox1;
-        private System.Windows.Forms.Label lbPlatzhalter1;
-        private System.Windows.Forms.TextBox tbPlatzhalter1;
-        private System.Windows.Forms.Label lbPlatzhalter2;
-        private System.Windows.Forms.TextBox tbPlatzhalter2;
-        private System.Windows.Forms.Label lbSettingsOrt;
-        private System.Windows.Forms.TextBox textBox3;
-        private System.Windows.Forms.Label lbSettingsLand;
-        private System.Windows.Forms.TextBox tbSettingsLand;
+        private System.Windows.Forms.TextBox tbPort;
+        private System.Windows.Forms.Label lbUser;
+        private System.Windows.Forms.TextBox tbUser;
+        private System.Windows.Forms.TextBox tbPasswort;
+        private System.Windows.Forms.Label lbPasswort;
+        private System.Windows.Forms.Label lbFrontend;
+        private System.Windows.Forms.TextBox tbTopicFrontend;
+        private System.Windows.Forms.Label lbBackend;
+        private System.Windows.Forms.TextBox tbTobicBackend;
+        private System.Windows.Forms.Label lbQos;
+        private System.Windows.Forms.TextBox tbQos;
+        private System.Windows.Forms.Label lbTimeout;
+        private System.Windows.Forms.TextBox tbTimeout;
+        private System.Windows.Forms.Label lbPlz;
+        private System.Windows.Forms.TextBox tbPlz;
         private System.Windows.Forms.Label lblFrontendId;
-        private System.Windows.Forms.Button btSichern;
+        private System.Windows.Forms.Button btnSave;
     }
 }
\ No newline at end of file
diff --git a/Wetterstation/Settings.cs b/Wetterstation/Settings.cs
index bf9709a1b323aa6fe56b98b64079aee28d1d6629..d2125ec6cca33fbdd7f639b0c1d65180d080d068 100644
--- a/Wetterstation/Settings.cs
+++ b/Wetterstation/Settings.cs
@@ -14,10 +14,37 @@ namespace Wetterstation
 {
     public partial class Settings : Form
     {
+        //List<SettingsModel> WeatherstationSettings = new List<SettingsModel>();
+        SettingsModel WeatherstationSettings = new SettingsModel();
+
         public Settings()
         {
             InitializeComponent();
             lblFrontendId.Text = "Frontend Id: " + generateId();
+
+            //SqliteDataAccess.CreateAndOpenDb();
+            Console.WriteLine("Daten werden aus DB ausgelesen ...");
+            WeatherstationSettings = SqliteDataAccess.LoadWeatherstationSettings();
+            //Console.WriteLine("Ausgabe der Daten:" + WeatherstationSettings.mqtt_host);
+
+            //WeatherstationSettings = LoadWeatherstationSettings();
+            //Console.WriteLine("Ausgabe der Daten:" + WeatherstationSettings.;
+        }
+
+        private void LoadWeatherstationSettings()
+        {
+            //WeatherstationSettings = SqliteDataAccess.LoadWeatherstationSettings();
+            //SqliteDataAccess.CreateAndOpenDb();
+            //WeatherstationSettings = SqliteDataAccess.GetUserByName();
+            tbHost.Text = WeatherstationSettings.mqtt_host;
+            tbUser.Text = WeatherstationSettings.mqtt_user;
+            tbPasswort.Text = WeatherstationSettings.mqtt_pass;
+            tbTopicFrontend.Text = WeatherstationSettings.mqtt_topic_frontend;
+            tbTobicBackend.Text = WeatherstationSettings.mqtt_topic_backend;
+            tbQos.Text = WeatherstationSettings.mqtt_qos.ToString();
+            tbTimeout.Text = WeatherstationSettings.mqtt_timeout;
+            tbPort.Text = WeatherstationSettings.mqtt_port.ToString();
+            tbPlz.Text = WeatherstationSettings.plz.ToString();
         }
         
         private void TextBox2_TextChanged(object sender, EventArgs e)
@@ -79,6 +106,40 @@ namespace Wetterstation
         }
 
         private void Settings_Load(object sender, EventArgs e)
+        {
+            Console.WriteLine("Bin in Settings_Load !!!!!!!");
+            LoadWeatherstationSettings();
+        }
+
+        private void TbSettingsHost_TextChanged(object sender, EventArgs e)
+        {
+
+        }
+
+        //SettingsForm in SettingsModell ablegen
+        private void Button1_Click(object sender, EventArgs e)
+        {
+            SettingsModel mqttSettings = new SettingsModel();
+
+            mqttSettings.mqtt_host = tbHost.Text;
+            mqttSettings.mqtt_user = tbPasswort.Text;
+            mqttSettings.mqtt_pass = tbTopicFrontend.Text;
+            mqttSettings.mqtt_topic_frontend = tbTobicBackend.Text;
+            mqttSettings.mqtt_topic_backend = tbQos.Text;
+            mqttSettings.mqtt_qos = Int32.Parse(tbQos.Text); 
+            mqttSettings.mqtt_timeout = tbTimeout.Text;
+            mqttSettings.mqtt_port = Int32.Parse(tbPort.Text);
+            mqttSettings.frontendId = generateId();              //wird automatisch berechnet und gesetzt und soll nicht geändert werden
+            mqttSettings.plz = Int16.Parse(tbPlz.Text);
+            mqttSettings.city = tbPlz.Text;
+
+            Console.WriteLine("Speichere Settings ");
+            SqliteDataAccess.SaveWeatherstationSettings(mqttSettings);
+
+            this.Close();
+        }
+
+        private void TextBox1_TextChanged(object sender, EventArgs e)
         {
 
         }
diff --git a/Wetterstation/Settings.db b/Wetterstation/Settings.db
new file mode 100644
index 0000000000000000000000000000000000000000..ccac59371556edc7b104a23e8435ce8fcb652b6a
Binary files /dev/null and b/Wetterstation/Settings.db differ
diff --git a/Wetterstation/SettingsModel.cs b/Wetterstation/SettingsModel.cs
new file mode 100644
index 0000000000000000000000000000000000000000..ce3ba2a98624738025352ced832ee9785326c345
--- /dev/null
+++ b/Wetterstation/SettingsModel.cs
@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Wetterstation
+{
+    public class SettingsModel
+    {
+        public string mqtt_host { get; set; }
+
+        public string mqtt_user { get; set; }
+
+        public string mqtt_pass { get; set; }
+
+        public string mqtt_topic_frontend { get; set; }
+
+        public string mqtt_topic_backend { get; set; }
+
+        public int mqtt_qos { get; set; }
+
+        public string mqtt_timeout { get; set; }
+
+        public int mqtt_port { get; set; }
+
+        public string frontendId { get; set; }
+
+        public int plz { get; set; }
+
+        public string city { get; set; }
+    }
+}
diff --git a/Wetterstation/SqliteDataAccess.cs b/Wetterstation/SqliteDataAccess.cs
new file mode 100644
index 0000000000000000000000000000000000000000..90888dcdb7fbaec6d84dbfff1f8accb9904c418c
--- /dev/null
+++ b/Wetterstation/SqliteDataAccess.cs
@@ -0,0 +1,109 @@
+using Dapper;
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Data.SQLite;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Data.SqlClient;
+
+namespace Wetterstation
+{
+
+
+    public static class SqliteDataAccess
+    {
+
+        public static SQLiteConnection _dbConnection;
+
+        //public static void CreateAndOpenDb()
+        //{
+        //    //var dbFilePath = "./TestDb.sqlite";
+        //    var dbFilePath = "./frontend.db";
+        //    if (!File.Exists(dbFilePath))
+        //    {
+
+        //        SQLiteConnection.CreateFile(dbFilePath);
+        //    }
+        //    _dbConnection = new SQLiteConnection(string.Format(
+        //        "Data Source={0};Version=3;", dbFilePath));
+        //    _dbConnection.Open();
+        //}
+
+
+        public static SettingsModel LoadWeatherstationSettings()
+        {
+            using (IDbConnection cnn = new SQLiteConnection(LoadConnectionString()))
+            {
+                var output = cnn.Query<SettingsModel>("SELECT * FROM settings LIMIT 1;");
+                //Console.WriteLine("Der Horst ist:" + output.ToString);
+                return output.FirstOrDefault();
+            }
+        }
+
+        public static void SaveWeatherstationSettings(SettingsModel mqttSettings)
+        {
+            //Console.WriteLine("Port aus DB ..." + mqttSettings.dbMqttHost);
+            using (IDbConnection cnn = new SQLiteConnection(LoadConnectionString()))
+            {
+                cnn.Execute("UPDATE settings SET mqtt_host = @mqtt_host, mqtt_user = @mqtt_user, mqtt_pass = @mqtt_pass, mqtt_topic_frontend = @mqtt_topic_frontend, mqtt_topic_backend = @mqtt_topic_backend, mqtt_qos = @mqtt_qos, mqtt_timeout = @mqtt_timeout, mqtt_port = @mqtt_port, plz = @plz;", mqttSettings);
+            }
+        }
+
+
+        //holt den ConnectionString aus der App.config (siehe ProjektmappenExplorer)
+        private static string LoadConnectionString(string id = "Default")
+        {
+            return ConfigurationManager.ConnectionStrings[id].ConnectionString;
+        }
+
+        //public static SettingsModel GetUserByName()
+        //{
+        //    var userCollection = _dbConnection.Query<SettingsModel>("SELECT * FROM settings LIMIT 1;");
+        //    //new { Port =  port });
+
+        //    return userCollection.FirstOrDefault();
+        //}
+
+        //public static void SaveWeatherstationSettings(SettingsModel mqttSettings)
+        //{
+        //    _dbConnection.ExecuteNonQuery(@"UPDATE settings SET mqtt_host = @mqtt_host, mqtt_user = @mqtt_user, mqtt_pass = @mqtt_pass, mqtt_topic_frontend = @mqtt_topic_frontend, mqtt_topic_backend = @mqtt_topic_backend, mqtt_qos = @mqtt_qos, mqtt_timeout = @mqtt_timeout, mqtt_port = @mqtt_port, plz = @plz, city = @city ; ");
+
+        //}
+
+
+        //    
+
+
+
+    }
+}
+
+
+
+    //    public static SettingsModel LoadWeatherstationSettings()
+    //    {
+    //        using (IDbConnection cnn = new SQLiteConnection(LoadConnectionString()))
+    //        {
+    //            var output = cnn.Query<SettingsModel>("select * from settings where mqtt_port=1883");
+    //            //Console.WriteLine("Der Horst ist:" + output.ToString);
+    //            return output.FirstOrDefault();
+    //        }
+    //    }
+
+    //    public static void SaveWeatherstationSettings(SettingsModel mqttSettings)
+    //    {
+    //        Console.WriteLine("Port aus DB ..." + mqttSettings.dbMqttHost);
+    //        using (IDbConnection cnn = new SQLiteConnection(LoadConnectionString()))
+    //        {
+    //            cnn.Execute("UPDATE settings SET mqtt_host = @mqtt_host, mqtt_user = @mqtt_user, mqtt_pass = @mqtt_pass, mqtt_topic_frontend = @mqtt_topic_frontend, mqtt_topic_backend = @mqtt_topic_backend, mqtt_qos = @mqtt_qos, mqtt_timeout = @mqtt_timeout, mqtt_port = @mqtt_port, plz = @plz, city = @city ;");
+    //        }
+    //    }
+
+
+ 
+//}
+
diff --git a/Wetterstation/Wetterstation.csproj b/Wetterstation/Wetterstation.csproj
index 9762571799803bd891b49e4577b360e286473e52..547551ba8670c990680663c86ff3458ff5b10e67 100644
--- a/Wetterstation/Wetterstation.csproj
+++ b/Wetterstation/Wetterstation.csproj
@@ -12,6 +12,8 @@
     <FileAlignment>512</FileAlignment>
     <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
     <Deterministic>true</Deterministic>
+    <NuGetPackageImportStamp>
+    </NuGetPackageImportStamp>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     <PlatformTarget>AnyCPU</PlatformTarget>
@@ -33,6 +35,9 @@
     <WarningLevel>4</WarningLevel>
   </PropertyGroup>
   <ItemGroup>
+    <Reference Include="Dapper, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+      <HintPath>..\packages\Dapper.2.0.30\lib\net461\Dapper.dll</HintPath>
+    </Reference>
     <Reference Include="LiveCharts, Version=0.9.7.0, Culture=neutral, PublicKeyToken=0bc1f845d1ebb8df, processorArchitecture=MSIL">
       <HintPath>..\packages\LiveCharts.0.9.7\lib\net45\LiveCharts.dll</HintPath>
     </Reference>
@@ -43,7 +48,11 @@
       <HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
     </Reference>
     <Reference Include="System" />
+    <Reference Include="System.Configuration" />
     <Reference Include="System.Core" />
+    <Reference Include="System.Data.SQLite, Version=1.0.112.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
+      <HintPath>..\packages\System.Data.SQLite.Core.1.0.112.0\lib\net46\System.Data.SQLite.dll</HintPath>
+    </Reference>
     <Reference Include="System.Management" />
     <Reference Include="System.Windows.Forms.DataVisualization" />
     <Reference Include="System.Xml.Linq" />
@@ -57,6 +66,8 @@
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
+    <Compile Include="SqliteDataAccess.cs" />
+    <Compile Include="SettingsModel.cs" />
     <Compile Include="Form1.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -87,6 +98,9 @@
     <EmbeddedResource Include="Settings.resx">
       <DependentUpon>Settings.cs</DependentUpon>
     </EmbeddedResource>
+    <Content Include="frontend.db">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
     <None Include="packages.config" />
     <None Include="Properties\Settings.settings">
       <Generator>SettingsSingleFileGenerator</Generator>
@@ -144,4 +158,11 @@
     <None Include="Resources\Zahnrad.png" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <Import Project="..\packages\System.Data.SQLite.Core.1.0.112.0\build\net46\System.Data.SQLite.Core.targets" Condition="Exists('..\packages\System.Data.SQLite.Core.1.0.112.0\build\net46\System.Data.SQLite.Core.targets')" />
+  <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
+    <PropertyGroup>
+      <ErrorText>Dieses Projekt verweist auf mindestens ein NuGet-Paket, das auf diesem Computer fehlt. Verwenden Sie die Wiederherstellung von NuGet-Paketen, um die fehlenden Dateien herunterzuladen. Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkID=322105". Die fehlende Datei ist "{0}".</ErrorText>
+    </PropertyGroup>
+    <Error Condition="!Exists('..\packages\System.Data.SQLite.Core.1.0.112.0\build\net46\System.Data.SQLite.Core.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\System.Data.SQLite.Core.1.0.112.0\build\net46\System.Data.SQLite.Core.targets'))" />
+  </Target>
 </Project>
\ No newline at end of file
diff --git a/Wetterstation/Wetterstation.csproj.user b/Wetterstation/Wetterstation.csproj.user
new file mode 100644
index 0000000000000000000000000000000000000000..c10e84bab3003321cc164654bf70a4d2df291927
--- /dev/null
+++ b/Wetterstation/Wetterstation.csproj.user
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <ProjectView>ProjectFiles</ProjectView>
+  </PropertyGroup>
+</Project>
\ No newline at end of file
diff --git a/Wetterstation/packages.config b/Wetterstation/packages.config
index 224026ebb16b6f9bffa2c07c3cc681830d80dd44..3573adec575a63fa6f0bfaf093fdea46d1bc7455 100644
--- a/Wetterstation/packages.config
+++ b/Wetterstation/packages.config
@@ -1,6 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <packages>
+  <package id="Dapper" version="2.0.30" targetFramework="net472" />
   <package id="LiveCharts" version="0.9.7" targetFramework="net472" />
   <package id="M2Mqtt" version="4.3.0.0" targetFramework="net472" />
   <package id="Newtonsoft.Json" version="12.0.3" targetFramework="net472" />
+  <package id="System.Data.SQLite.Core" version="1.0.112.0" targetFramework="net472" />
 </packages>
\ No newline at end of file