diff --git a/Minimal-J/src/main/java/ch/openech/mj/db/DbPersistence.java b/Minimal-J/src/main/java/ch/openech/mj/db/DbPersistence.java
index <HASH>..<HASH> 100644
--- a/Minimal-J/src/main/java/ch/openech/mj/db/DbPersistence.java
+++ b/Minimal-J/src/main/java/ch/openech/mj/db/DbPersistence.java
@@ -223,13 +223,17 @@ public class DbPersistence {
 			if (!initialized) {

 				initialized = true;

 				testModel();

-				if (dataSource instanceof EmbeddedDataSource && "create".equals(((EmbeddedDataSource) dataSource).getCreateDatabase())) {

+				if (createTablesOnInitialize()) {

 					createTables();

 				}

 			}

 		}

 	}

 	

+	protected boolean createTablesOnInitialize() {

+		return dataSource instanceof EmbeddedDataSource && "create".equals(((EmbeddedDataSource) dataSource).getCreateDatabase());

+	}

+	

 	public <T> T read(Class<T> clazz, int id) {

 		Table<T> table = (Table<T>) getTable(clazz);

 		return table.read(id);
DbPersistence: extract method createTablesOnInitialize to make it
changeable