Index: src/libchcore/TSQLiteTaskSchema.cpp
===================================================================
diff -u -N -rd32a79f0e9220bad2c6eeb5e8a986228b6e832fb -rb7655a8f0721e5454befd29e3e067748eb0521e9
--- src/libchcore/TSQLiteTaskSchema.cpp	(.../TSQLiteTaskSchema.cpp)	(revision d32a79f0e9220bad2c6eeb5e8a986228b6e832fb)
+++ src/libchcore/TSQLiteTaskSchema.cpp	(.../TSQLiteTaskSchema.cpp)	(revision b7655a8f0721e5454befd29e3e067748eb0521e9)
@@ -20,6 +20,7 @@
 #include "TSQLiteTaskSchema.h"
 #include "TSQLiteTransaction.h"
 #include "TSerializerVersion.h"
+#include "TSQLiteStatement.h"
 
 BEGIN_CHCORE_NAMESPACE
 
@@ -41,11 +42,9 @@
 	// if version is 0, then this is the fresh database with (almost) no tables inside
 	if(tVersion.GetVersion() == 0)
 	{
-/*
-		TSQLiteStatement tStatement(spDatabase);
-		tStatement.Prepare(_T("CREATE TABLE tasks(task_id BIGINT UNIQUE, task_order INT, path VARCHAR(32768))"));
+		sqlite::TSQLiteStatement tStatement(spDatabase);
+		tStatement.Prepare(_T("CREATE TABLE task(id BIGINT UNIQUE, name varchar(256) NOT NULL, log_path VARCHAR(32768), current_state INT NOT NULL, destination_path varchar(32768) NOT NULL)"));
 		tStatement.Step();
-*/
 
 		// and finally set the database version to current one
 		tVersion.SetVersion(1);