diff --git a/main.go b/main.go
index e61cbe0c8d42712ac31f34223ed5ce89c7d6df69..05162d374eeab01d62ca42953eff740e53857681 100644
--- a/main.go
+++ b/main.go
@@ -20,7 +20,9 @@ func main() {
 
 	if os.Getenv("OUTPUT_DATABSE") != "" && os.Getenv("CLIENT_USE_SERVER") != "true" {
 		database.Init()
-		database.CreateInstance()
+		if os.Getenv("LOGGER_SERVER") != "true" {
+			database.CreateInstance()
+		}
 	}
 
 	if os.Getenv("MQTT_SERVER_ENABLED") == "true" {