diff --git a/tests/data/db_structure.xml b/tests/data/db_structure.xml
new file mode 100644
index 00000000000..03d7502c441
--- /dev/null
+++ b/tests/data/db_structure.xml
@@ -0,0 +1,138 @@
+
+
+
+ *dbname*
+ false
+ false
+
+ utf8
+
+
+
+ *dbprefix*contacts_addressbooks
+
+
+
+
+ id
+ integer
+ 0
+ true
+ 1
+ true
+ 4
+
+
+
+ userid
+ text
+
+ true
+ 255
+
+
+
+ displayname
+ text
+
+ false
+ 255
+
+
+
+ uri
+ text
+
+ false
+ 200
+
+
+
+ description
+ text
+ false
+ 255
+
+
+
+ ctag
+ integer
+ 1
+ true
+ true
+ 4
+
+
+
+ active
+ integer
+ 1
+ true
+ 4
+
+
+
+
+
+
+
+
+ *dbprefix*contacts_cards
+
+
+
+
+ id
+ integer
+ 0
+ true
+ 1
+ true
+ 4
+
+
+
+ addressbookid
+ integer
+
+ true
+ true
+ 4
+
+
+
+ fullname
+ text
+
+ false
+ 255
+
+
+
+ carddata
+ clob
+ false
+
+
+
+ uri
+ text
+
+ false
+ 200
+
+
+
+ lastmodified
+ integer
+
+ false
+ true
+ 4
+
+
+
+
+
+
+
diff --git a/tests/data/db_structure2.xml b/tests/data/db_structure2.xml
new file mode 100644
index 00000000000..c1bbb550483
--- /dev/null
+++ b/tests/data/db_structure2.xml
@@ -0,0 +1,77 @@
+
+
+
+ *dbname*
+ true
+ false
+
+ utf8
+
+
+
+ *dbprefix*contacts_addressbooks
+
+
+
+
+ id
+ integer
+ 0
+ true
+ 1
+ true
+ 4
+
+
+
+ userid
+ text
+
+ true
+ 255
+
+
+
+ displayname
+ text
+
+ false
+ 255
+
+
+
+ uri
+ text
+
+ true
+ 200
+
+
+
+ description
+ clob
+ false
+
+
+
+ ctag
+ integer
+ 1
+ true
+ true
+ 4
+
+
+
+ active
+ integer
+ 1
+ true
+ 1
+
+
+
+
+
+
+