diff --git a/Saviour Backup System/Saviour Backup System.csproj b/Saviour Backup System/Saviour Backup System.csproj
index d692e89..0ab63ef 100644
--- a/Saviour Backup System/Saviour Backup System.csproj
+++ b/Saviour Backup System/Saviour Backup System.csproj
@@ -55,6 +55,7 @@
+
diff --git a/Saviour Backup System/setup.cs b/Saviour Backup System/setup.cs
new file mode 100644
index 0000000..72c40bc
--- /dev/null
+++ b/Saviour Backup System/setup.cs
@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.IO;
+using System.Data.SqlServerCe;
+
+namespace Saviour_Backup_System
+{
+ class setup
+ {
+ public static void initProgram()
+ {
+ string databaseName = databaseTools.databaseName;
+ if (File.Exists(databaseName)) { return; } // If the program has been run before, then the database will exist, so use that to test it.
+ SqlCeEngine SQLEngine = new SqlCeEngine("Data Source = " + databaseName);
+ SQLEngine.CreateDatabase(); //Creates the database if it doesnt exist already
+
+ SqlCeConnection conn = new SqlCeConnection("Data Source = " + databaseName);
+ conn.Open();
+ SqlCeCommand cmd = conn.CreateCommand();
+
+ cmd.CommandText = "CREATE TABLE Rules (%%);"; //Fill these in! (Before running)
+ cmd.ExecuteNonQuery();
+
+ cmd.CommandText = "CREATE TABLE Properties (%%);"; //Fill this one in too
+ cmd.ExecuteNonQuery();
+
+ cmd.CommandText = "CREATE TABLE ";
+ }
+ }
+}