diff --git a/setup/create_database.php b/setup/create_database.php
deleted file mode 100644
index e2a118b..0000000
--- a/setup/create_database.php
+++ /dev/null
@@ -1,123 +0,0 @@
-exec("CREATE TABLE IF NOT EXISTS location(
- id INTEGER PRIMARY KEY AUTOINCREMENT,
- username text NOT NULL DEFAULT '',
- age text NOT NULL DEFAULT '',
- transport text NOT NULL DEFAULT '',
- description text NOT NULL DEFAULT '',
- defect number,
- topic number,
- lng number,
- lat number,
- thumb_ups INTEGER DEFAULT 0,
- thumb_downs INTEGER DEFAULT 0,
- created_at TEXT DEFAULT CURRENT_TIMESTAMP
-)");
-
-$db->exec("CREATE TABLE IF NOT EXISTS files(
- id INTEGER PRIMARY KEY AUTOINCREMENT,
- loc_id INTEGER,
- filename TEXT,
- filetype TEXT,
- filesize INTEGER
-)");
-
-$db->exec("CREATE TABLE IF NOT EXISTS comment(
- id INTEGER PRIMARY KEY AUTOINCREMENT,
- loc_id INTEGER,
- username TEXT,
- comment TEXT,
- created_at TEXT DEFAULT CURRENT_TIMESTAMP
- )");
-
-$db->exec("CREATE TABLE IF NOT EXISTS user(
- id INTEGER PRIMARY KEY AUTOINCREMENT,
- username TEXT,
- passwordhash TEXT,
- lastlogin TEXT DEFAULT CURRENT_TIMESTAMP,
- created_at TEXT DEFAULT CURRENT_TIMESTAMP
- )");
-
-$db->exec("CREATE TABLE IF NOT EXISTS address(
- id INTEGER PRIMARY KEY AUTOINCREMENT,
- loc_id INTEGER,
- parking TEXT,
- road TEXT,
- house_number TEXT,
- industrial TEXT,
- neighbourhood TEXT,
- hamlet TEXT,
- suburb TEXT,
- postcode TEXT,
- city TEXT,
- county TEXT,
- country TEXT
- )");
-
-$db->exec("CREATE TABLE IF NOT EXISTS 'config' ('key' TEXT PRIMARY KEY NOT NULL DEFAULT NULL, 'value' TEXT DEFAULT NULL);
-INSERT INTO 'config' ('key','value') VALUES ('boolActive','1');
-INSERT INTO 'config' ('key','value') VALUES ('boolRating','1');
-INSERT INTO 'config' ('key','value') VALUES ('boolComment','1');
-INSERT INTO 'config' ('key','value') VALUES ('boolUpload','1');
-INSERT INTO 'config' ('key','value') VALUES ('boolUserinfo','0');
-INSERT INTO 'config' ('key','value') VALUES ('boolDefect','1');
-INSERT INTO 'config' ('key','value') VALUES ('uploaddir','/var/www/html/images/');
-INSERT INTO 'config' ('key','value') VALUES ('title','Testversion Hamm');
-INSERT INTO 'config' ('key','value') VALUES ('fileGeojson','geojson/hamm.geojson');
-INSERT INTO 'config' ('key','value') VALUES ('InfoLat','51.66');
-INSERT INTO 'config' ('key','value') VALUES ('InfoLng','7.825');
-INSERT INTO 'config' ('key','value') VALUES ('zoom','12');
-INSERT INTO 'config' ('key','value') VALUES ('logo','css/logo.png');
-INSERT INTO 'config' ('key','value') VALUES ('contactEmail','info@radwege-hamm.de');
-INSERT INTO 'config' ('key','value') VALUES ('impressum','Walter Hupfeld
-Bankerheide 2
-59065 Hamm');
-INSERT INTO 'config' ('key','value') VALUES ('url','https://www.radwege-hamm.de');
-INSERT INTO 'config' ('key','value') VALUES ('UrlBez','Homepage Radwege Hamm');
-INSERT INTO 'config' ('key','value') VALUES ('IntroText','Hier können Sie uns Hinweise auf Verbesserungen der Verkehrsinfrastruktur in der Stadt Mülheim an der Ruhr vorschlagen.
-
-Klicken Sie dazu auf entsprechenden Ort auf der Karte und geben Sie im Dialog ihre Anmerkungen ein.
-Den Marker können sie solange auf die richtige Stelle verschieben, bis die Eingabe abgeschlossen ist.
-
-Vielen Dank für Ihre Unterstützung.');
-INSERT INTO 'config' ('key','value') VALUES ('stadt','Hamm');
-");
-
-
-
-DROP TABLE IF EXISTS `config`;
-CREATE TABLE `config` (
- `key` varchar(50) NOT NULL,
- `value` text NOT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-
-
-
-INSERT INTO `config` (`key`, `value`) VALUES
-('boolActive', '1'),
-('boolApprove', '1'),
-('boolComment', '1'),
-('boolDefect', '1'),
-('boolDistrictSelection', '0'),
-('boolRating', '1'),
-('boolUpload', '1'),
-('boolUserinfo', '0'),
-('contactEmail', 'info@adfc-nrw.de'),
-('impressum', 'ADFC Landesverband NRW\r\nDüsseldorf\r\n\r\nwww.nrw.adfc.de'),
-('introText', ' ADFC Meldeportal für die Mitteilung von Anregungen und Ideen zum Radverkehr und der Anzeige von Barrieren, wie Umlaufsperren und Sperrpfosten. '),
-('logo', 'css/logo_nordrhein_westfalen.png'),
-('stadt', 'Hamm'),
-('title', 'Hindernis-Melder des ADFC NRW'),
-('uploaddir', '/var/www/html/images/'),
-('url', 'https://nrw.adfc.de'),
-('UrlBez', 'ADFC Landesverband NRW');
-
-
-ALTER TABLE `config`
- ADD PRIMARY KEY (`key`);
-COMMIT;
\ No newline at end of file
diff --git a/setup/index.php b/setup/index.php
deleted file mode 100644
index 7eed7dc..0000000
--- a/setup/index.php
+++ /dev/null
@@ -1,192 +0,0 @@
-
-
-
-
-
-
-
-
-
- Setup
-
-
-
-
-
Setup
-
-
-
-
\ No newline at end of file
diff --git a/setup/setup_chk.php b/setup/setup_chk.php
deleted file mode 100644
index b4c01c7..0000000
--- a/setup/setup_chk.php
+++ /dev/null
@@ -1,75 +0,0 @@
-query("TRUNCATE config");
-
-$boolActive = (isset($_POST['active'])) ? "1" : "0";
-$boolRating = (isset($_POST['rating'])) ? "1" : "0";
-$boolComment = (isset($_POST['comment'])) ? "1" : "0";
-$boolUpload = (isset($_POST['fileupload'])) ? "1" : "0";
-$boolUserinfo = (isset($_POST['userinfo'])) ? "1" : "0";
-$boolDefect = (isset($_POST['defect'])) ? "1" : "0";
-$boolActive = 1;
-
-$strUploaddir = $_POST['uploaddir'];
-$strStadt = $_POST['district'];
-$strTitle = $_POST['title'];
-$fileGeojson =$_POST['geojson'];
-$numInfoLat = $_POST['lat'];;
-$numInfoLng = $_POST['lng'];;
-$numZoom = $_POST['zoom'];;
-$strLogo = $_POST['logo'];;
-$contactEmail= $_POST['contactEmail'];;
-$strImpressum= $_POST['impressum'];
-$strUrl = $_POST['url'];
-$strUrlBez = $_POST['urlBez'];
-$strIntroText= $_POST['introtext'];
-$strUsername = $_POST['login'];
-$strPassword = $_POST['password'];
-
-
-$strImpressum=addslashes($strImpressum);
-$strIntroText=addslashes($strIntroText);
-$strPasswordHash = password_hash($strPassword,PASSWORD_BCRYPT);
-
-// Username und Passwort in der Datenbank
-$strSQL = "INSERT INTO user (username,passwordhash) values (:username, :passwordhash)";
-$stmt = $db->prepare($strSQL);
-$stmt->bindValue(':username', $strUsername);
-$stmt->bindValue(':passwordhash', $strPasswordHash);
-$stmt->execute();
-exit;
-
-$db->query("UPDATE config SET value= '$strUploaddir' WHERE key='uploaddir'");
-$db->query("UPDATE config SET value= '$fileGeojson' WHERE key='fileGeojson'");
-$db->query("UPDATE config SET value= '$strStadt' WHERE key='stadt'");
-$db->query("UPDATE config SET value= '$strTitle' WHERE key='title'");
-$db->query("UPDATE config SET value= '$numInfoLat' WHERE key='InfoLat'");
-$db->query("UPDATE config SET value= '$numInfoLng' WHERE key='InfoLng'");
-$db->query("UPDATE config SET value= '$numZoom' WHERE key='zoom'");
-$db->query("UPDATE config SET value= '$strLogo' WHERE key='logo'");
-$db->query("UPDATE config SET value= '$contactEmail' WHERE key='contactEmail'");
-$db->query("UPDATE config SET value= '$strImpressum' WHERE key='impressum'");
-$db->query("UPDATE config SET value= '$strUrl' WHERE key='url'");
-$db->query("UPDATE config SET value= '$strUrlBez' WHERE key='UrlBez'");
-$db->query("UPDATE config SET value= '$strIntroText' WHERE key='IntroText'");
-
-$db->query("UPDATE config SET value= '$boolActive' WHERE key='boolActive'");
-$db->query("UPDATE config SET value= '$boolRating' WHERE key='boolRating'");
-$db->query("UPDATE config SET value= '$boolComment' WHERE key='boolComment'");
-$db->query("UPDATE config SET value= '$boolUserinfo' WHERE key='boolUserinfo'");
-$db->query("UPDATE config SET value= '$boolDefect' WHERE key='boolDefect'");
-$db->query("UPDATE config SET value= '$boolUpload' WHERE key='boolUpload'");
-
-
-header("Location: index.php");
\ No newline at end of file
diff --git a/sql/nrw_melder.sql b/sql/nrw_melder.sql
new file mode 100644
index 0000000..bafa4b7
--- /dev/null
+++ b/sql/nrw_melder.sql
@@ -0,0 +1,390 @@
+-- phpMyAdmin SQL Dump
+-- version 5.2.1
+-- https://www.phpmyadmin.net/
+--
+-- Host: webserver-db:3306
+-- Erstellungszeit: 04. Jun 2024 um 15:25
+-- Server-Version: 10.11.2-MariaDB-1:10.11.2+maria~ubu2204
+-- PHP-Version: 8.1.15
+
+SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
+START TRANSACTION;
+SET time_zone = "+00:00";
+
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8mb4 */;
+
+--
+-- Datenbank: `nrw_melder`
+--
+CREATE DATABASE IF NOT EXISTS `nrw_melder` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
+USE `nrw_melder`;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `address`
+--
+
+DROP TABLE IF EXISTS `address`;
+CREATE TABLE `address` (
+ `id` int(11) NOT NULL,
+ `loc_id` int(11) DEFAULT NULL,
+ `parking` text DEFAULT NULL,
+ `road` text DEFAULT NULL,
+ `house_number` text DEFAULT NULL,
+ `industrial` text DEFAULT NULL,
+ `neighbourhood` text DEFAULT NULL,
+ `hamlet` text DEFAULT NULL,
+ `suburb` text DEFAULT NULL,
+ `postcode` text DEFAULT NULL,
+ `city` text DEFAULT NULL,
+ `county` text DEFAULT NULL,
+ `country` text DEFAULT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
+
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `comment`
+--
+
+DROP TABLE IF EXISTS `comment`;
+CREATE TABLE `comment` (
+ `id` int(11) NOT NULL,
+ `loc_id` int(11) DEFAULT NULL,
+ `username` varchar(100) DEFAULT NULL,
+ `comment` text DEFAULT NULL,
+ `created_at` date DEFAULT current_timestamp()
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
+
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `config`
+--
+
+DROP TABLE IF EXISTS `config`;
+CREATE TABLE `config` (
+ `key` varchar(50) NOT NULL,
+ `value` text NOT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
+
+--
+-- Daten für Tabelle `config`
+--
+
+INSERT INTO `config` (`key`, `value`) VALUES
+('boolActive', '1'),
+('boolApprove', '1'),
+('boolComment', '0'),
+('boolDefect', '1'),
+('boolDistrictSelection', '0'),
+('boolRating', '1'),
+('boolSidebar', '0'),
+('boolUpload', '1'),
+('boolUserinfo', '0'),
+('contactEmail', 'info@adfc-nrw.de'),
+('impressum', '