diff --git a/powerdns/templates/configmap.yaml b/powerdns/templates/configmap.yaml
index c675096e0ba84761a2787e8742a753b0050268a4..32b42ee7bc284c255ef9ae15a5685915ad07e484 100644
--- a/powerdns/templates/configmap.yaml
+++ b/powerdns/templates/configmap.yaml
@@ -8,8 +8,9 @@ data:
   pdns.conf: |-
     include-dir=/etc/powerdns/pdns.d
   database.conf: |-
-    launch=lmdb
-    lmdb-filename=/data/pdns.lmdb
+    launch=gsqlite3
+    gsqlite3-dnssec
+    gsqlite3-database=/data/pdns.sqlite
   security.conf: |-
     setuid={{ .Values.securityContext.runAsUser }}
     setgid={{ .Values.securityContext.runAsGroup }}
diff --git a/powerdns/templates/deployment.yaml b/powerdns/templates/deployment.yaml
index a018895a1a80e06aac472394b9d8e236aebcf362..340a6127015385d567e31d18c2f5677861463226 100644
--- a/powerdns/templates/deployment.yaml
+++ b/powerdns/templates/deployment.yaml
@@ -36,6 +36,25 @@ spec:
         - name: tmp
           emptyDir:
             medium: Memory
+      initContainers:
+        - name: sqlite-init
+          securityContext:
+            {{- toYaml .Values.securityContext | nindent 12 }}
+          image: keinos/sqlite3
+          imagePullPolicy: {{ .Values.image.pullPolicy }}
+          command:
+            - "sqlite3"
+          args:
+            - "/data/pdns.sqlite"
+            - "-init"
+            - "/secret/init.sql"
+          resources:
+            {{- toYaml .Values.resources | nindent 12 }}
+          volumeMounts:
+            - mountPath: /data
+              name: data
+            - mountPath: /secret
+              name: secret
       containers:
         - name: {{ .Chart.Name }}
           securityContext:
diff --git a/powerdns/templates/secret.yaml b/powerdns/templates/secret.yaml
index 072c5fda2ea0158f631bdee35ee4e3c1e24b2a0b..eb23e1fe4f77dfe58ecbaad6ef57f1811e1f3ad4 100644
--- a/powerdns/templates/secret.yaml
+++ b/powerdns/templates/secret.yaml
@@ -10,3 +10,5 @@ stringData:
     {{ if .Values.api.enabled }}
     api-key={{ .Values.api.key }}
     {{ end }}
+  init.sql: |-
+    {{- .Values.init  | nindent 4 }}