sqlite import
sqlite import

--- a/.gitmodules
+++ b/.gitmodules

file:b/.idea/.name (new)
--- /dev/null
+++ b/.idea/.name
@@ -1,1 +1,1 @@
-
+dcaas

--- /dev/null
+++ b/.idea/compiler.xml
@@ -1,1 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>

+<project version="4">

+  <component name="CompilerConfiguration">

+    <option name="DEFAULT_COMPILER" value="Javac" />

+    <resourceExtensions />

+    <wildcardResourcePatterns>

+      <entry name="!?*.java" />

+      <entry name="!?*.form" />

+      <entry name="!?*.class" />

+      <entry name="!?*.groovy" />

+      <entry name="!?*.scala" />

+      <entry name="!?*.flex" />

+      <entry name="!?*.kt" />

+      <entry name="!?*.clj" />

+    </wildcardResourcePatterns>

+    <annotationProcessing>

+      <profile default="true" name="Default" enabled="false">

+        <processorPath useClasspath="true" />

+      </profile>

+    </annotationProcessing>

+  </component>

+</project>

+

 

--- /dev/null
+++ b/.idea/encodings.xml
@@ -1,1 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>

+<project version="4">

+  <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />

+</project>

+

 

file:b/.idea/misc.xml (new)
--- /dev/null
+++ b/.idea/misc.xml
@@ -1,1 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>

+<project version="4">

+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" assert-keyword="true" jdk-15="true">

+    <output url="file://$PROJECT_DIR$/out" />

+  </component>

+</project>

+

 

file:b/.idea/modules.xml (new)
--- /dev/null
+++ b/.idea/modules.xml
@@ -1,1 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>

+<project version="4">

+  <component name="ProjectModuleManager">

+    <modules>

+      <module fileurl="file://$PROJECT_DIR$/dcaas.iml" filepath="$PROJECT_DIR$/dcaas.iml" />

+    </modules>

+  </component>

+</project>

+

 

--- /dev/null
+++ b/.idea/scopes/scope_settings.xml
@@ -1,1 +1,5 @@
-
+<component name="DependencyValidationManager">

+  <state>

+    <option name="SKIP_IMPORT_STATEMENTS" value="false" />

+  </state>

+</component>

file:b/.idea/vcs.xml (new)
--- /dev/null
+++ b/.idea/vcs.xml
@@ -1,1 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>

+<project version="4">

+  <component name="VcsDirectoryMappings">

+    <mapping directory="" vcs="Git" />

+  </component>

+</project>

+

 

--- /dev/null
+++ b/.idea/workspace.xml
@@ -1,1 +1,428 @@
+<?xml version="1.0" encoding="UTF-8"?>

+<project version="4">

+  <component name="ChangeListManager">

+    <list default="true" id="816b2800-4ae7-4ee2-9d29-ebf91af07d7d" name="Default" comment="">

+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/data/DCaaS+Catalogue+September+2013 Public.xls" afterPath="$PROJECT_DIR$/data/DCaaS+Catalogue+September+2013 Public.xls" />

+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/fonts/glyphicons-halflings-regular.eot" afterPath="$PROJECT_DIR$/fonts/glyphicons-halflings-regular.eot" />

+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/fonts/glyphicons-halflings-regular.ttf" afterPath="$PROJECT_DIR$/fonts/glyphicons-halflings-regular.ttf" />

+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/fonts/glyphicons-halflings-regular.woff" afterPath="$PROJECT_DIR$/fonts/glyphicons-halflings-regular.woff" />

+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/data/DCaaS+Catalogue+September+2013 PublicDCaaS_AFI_Part_3_Sec_5_Service_.csv" afterPath="$PROJECT_DIR$/data/DCaaS+Catalogue+September+2013 PublicDCaaS_AFI_Part_3_Sec_5_Service_.csv" />

+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />

+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/css/bootstrap-theme.css" afterPath="$PROJECT_DIR$/css/bootstrap-theme.css" />

+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/css/bootstrap-theme.min.css" afterPath="$PROJECT_DIR$/css/bootstrap-theme.min.css" />

+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/css/bootstrap.css" afterPath="$PROJECT_DIR$/css/bootstrap.css" />

+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/js/bootstrap.js" afterPath="$PROJECT_DIR$/js/bootstrap.js" />

+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/css/bootstrap.min.css" afterPath="$PROJECT_DIR$/css/bootstrap.min.css" />

+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/js/bootstrap.min.js" afterPath="$PROJECT_DIR$/js/bootstrap.min.js" />

+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/fonts/glyphicons-halflings-regular.svg" afterPath="$PROJECT_DIR$/fonts/glyphicons-halflings-regular.svg" />

+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/index.php" afterPath="$PROJECT_DIR$/index.php" />

+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/data/xls2csv.py" afterPath="$PROJECT_DIR$/data/xls2csv.py" />

+    </list>

+    <ignored path="dcaas.iws" />

+    <ignored path=".idea/workspace.xml" />

+    <file path="/Dummy.txt" changelist="816b2800-4ae7-4ee2-9d29-ebf91af07d7d" time="1388122416019" ignored="false" />

+    <file path="/import.php" changelist="816b2800-4ae7-4ee2-9d29-ebf91af07d7d" time="1388236506137" ignored="false" />

+    <file path="/index.php" changelist="816b2800-4ae7-4ee2-9d29-ebf91af07d7d" time="1388236421813" ignored="false" />

+    <file path="/config.php" changelist="816b2800-4ae7-4ee2-9d29-ebf91af07d7d" time="1388237513189" ignored="false" />

+    <option name="TRACKING_ENABLED" value="true" />

+    <option name="SHOW_DIALOG" value="false" />

+    <option name="HIGHLIGHT_CONFLICTS" value="true" />

+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />

+    <option name="LAST_RESOLUTION" value="IGNORE" />

+  </component>

+  <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />

+  <component name="CreatePatchCommitExecutor">

+    <option name="PATCH_PATH" value="" />

+  </component>

+  <component name="DaemonCodeAnalyzer">

+    <disable_hints />

+  </component>

+  <component name="DebuggerManager">

+    <ui_properties default_suspend_policy="SuspendAll" default_condition_enabled="true" />

+    <breakpoint_any default_suspend_policy="SuspendAll" default_condition_enabled="true">

+      <breakpoint>

+        <option name="NOTIFY_CAUGHT" value="true" />

+        <option name="NOTIFY_UNCAUGHT" value="true" />

+        <option name="ENABLED" value="false" />

+        <option name="LOG_ENABLED" value="false" />

+        <option name="LOG_EXPRESSION_ENABLED" value="false" />

+        <option name="REMOVE_AFTER_HIT" value="false" />

+        <option name="SUSPEND_POLICY" value="SuspendAll" />

+        <option name="SUSPEND" value="true" />

+        <option name="COUNT_FILTER_ENABLED" value="false" />

+        <option name="COUNT_FILTER" value="0" />

+        <option name="CONDITION_ENABLED" value="true" />

+        <option name="CLASS_FILTERS_ENABLED" value="false" />

+        <option name="INSTANCE_FILTERS_ENABLED" value="false" />

+        <option name="CONDITION" value="" />

+        <option name="LOG_MESSAGE" value="" />

+      </breakpoint>

+      <breakpoint>

+        <option name="NOTIFY_CAUGHT" value="true" />

+        <option name="NOTIFY_UNCAUGHT" value="true" />

+        <option name="ENABLED" value="false" />

+        <option name="LOG_ENABLED" value="false" />

+        <option name="LOG_EXPRESSION_ENABLED" value="false" />

+        <option name="REMOVE_AFTER_HIT" value="false" />

+        <option name="SUSPEND_POLICY" value="SuspendAll" />

+        <option name="SUSPEND" value="true" />

+        <option name="COUNT_FILTER_ENABLED" value="false" />

+        <option name="COUNT_FILTER" value="0" />

+        <option name="CONDITION_ENABLED" value="true" />

+        <option name="CLASS_FILTERS_ENABLED" value="false" />

+        <option name="INSTANCE_FILTERS_ENABLED" value="false" />

+        <option name="CONDITION" value="" />

+        <option name="LOG_MESSAGE" value="" />

+      </breakpoint>

+    </breakpoint_any>

+    <breakpoint_rules />

+    <ui_properties />

+  </component>

+  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />

+  <component name="FavoritesManager">

+    <favorites_list name="dcaas" />

+  </component>

+  <component name="FileEditorManager">

+    <leaf>

+      <file leaf-file-name="config.php" pinned="false" current="false" current-in-tab="false">

+        <entry file="file://$PROJECT_DIR$/config.php">

+          <provider selected="true" editor-type-id="text-editor">

+            <state line="13" column="15" selection-start="420" selection-end="420" vertical-scroll-proportion="-8.5">

+              <folding />

+            </state>

+          </provider>

+        </entry>

+      </file>

+      <file leaf-file-name="import.php" pinned="false" current="true" current-in-tab="true">

+        <entry file="file://$PROJECT_DIR$/data/import.php">

+          <provider selected="true" editor-type-id="text-editor">

+            <state line="29" column="34" selection-start="1266" selection-end="1266" vertical-scroll-proportion="0.39534885">

+              <folding />

+            </state>

+          </provider>

+        </entry>

+      </file>

+      <file leaf-file-name="index.php" pinned="false" current="false" current-in-tab="false">

+        <entry file="file://$PROJECT_DIR$/index.php">

+          <provider selected="true" editor-type-id="text-editor">

+            <state line="2" column="0" selection-start="30" selection-end="30" vertical-scroll-proportion="-1.3076923">

+              <folding />

+            </state>

+          </provider>

+        </entry>

+      </file>

+      <file leaf-file-name="table.php" pinned="false" current="false" current-in-tab="false">

+        <entry file="file://$PROJECT_DIR$/table.php">

+          <provider selected="true" editor-type-id="text-editor">

+            <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="-0.0">

+              <folding>

+                <marker date="1388131247000" expanded="false" signature="453:465" placeholder="..." />

+                <marker date="1388131247000" expanded="false" signature="822:854" placeholder="..." />

+                <marker date="1388131247000" expanded="true" signature="1739:1817" placeholder="..." />

+                <marker date="1388131247000" expanded="true" signature="2136:2329" placeholder="{...}" />

+                <marker date="1388131247000" expanded="true" signature="2156:2255" placeholder="{&quot;paginate&quot;: false...}" />

+                <marker date="1388131247000" expanded="true" signature="2273:2323" placeholder="{...}" />

+                <marker date="1388131247000" expanded="true" signature="2423:2628" placeholder="{...}" />

+                <marker date="1388131247000" expanded="true" signature="2510:2617" placeholder="{...}" />

+                <marker date="1388131247000" expanded="true" signature="2649:2907" placeholder="{...}" />

+                <marker date="1388131247000" expanded="true" signature="2673:2819" placeholder="{&quot;paginate&quot;: false...}" />

+                <marker date="1388131247000" expanded="true" signature="2841:2897" placeholder="{...}" />

+              </folding>

+            </state>

+          </provider>

+        </entry>

+      </file>

+    </leaf>

+  </component>

+  <component name="FindManager">

+    <FindUsagesManager>

+      <setting name="OPEN_NEW_TAB" value="false" />

+    </FindUsagesManager>

+  </component>

+  <component name="Git.Settings">

+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />

+  </component>

+  <component name="GitLogSettings">

+    <option name="myDateState">

+      <MyDateState />

+    </option>

+  </component>

+  <component name="IdeDocumentHistory">

+    <option name="changedFiles">

+      <list>

+        <option value="$PROJECT_DIR$/index.php" />

+        <option value="$PROJECT_DIR$/config.php" />

+        <option value="$PROJECT_DIR$/data/import.php" />

+      </list>

+    </option>

+  </component>

+  <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />

+  <component name="ProjectFrameBounds">

+    <option name="x" value="58" />

+    <option name="y" value="-4" />

+    <option name="width" value="1626" />

+    <option name="height" value="1058" />

+  </component>

+  <component name="ProjectLevelVcsManager" settingsEditedManually="false">

+    <OptionsSetting value="true" id="Add" />

+    <OptionsSetting value="true" id="Remove" />

+    <OptionsSetting value="true" id="Checkout" />

+    <OptionsSetting value="true" id="Update" />

+    <OptionsSetting value="true" id="Status" />

+    <OptionsSetting value="true" id="Edit" />

+    <ConfirmationsSetting value="0" id="Add" />

+    <ConfirmationsSetting value="0" id="Remove" />

+  </component>

+  <component name="ProjectReloadState">

+    <option name="STATE" value="0" />

+  </component>

+  <component name="ProjectView">

+    <navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">

+      <flattenPackages />

+      <showMembers />

+      <showModules />

+      <showLibraryContents />

+      <hideEmptyPackages />

+      <abbreviatePackageNames />

+      <autoscrollToSource />

+      <autoscrollFromSource />

+      <sortByType />

+    </navigator>

+    <panes>

+      <pane id="PackagesPane" />

+      <pane id="Scope" />

+      <pane id="ProjectPane">

+        <subPane>

+          <PATH>

+            <PATH_ELEMENT>

+              <option name="myItemId" value="dcaas" />

+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />

+            </PATH_ELEMENT>

+          </PATH>

+          <PATH>

+            <PATH_ELEMENT>

+              <option name="myItemId" value="dcaas" />

+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />

+            </PATH_ELEMENT>

+            <PATH_ELEMENT>

+              <option name="myItemId" value="dcaas" />

+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />

+            </PATH_ELEMENT>

+          </PATH>

+          <PATH>

+            <PATH_ELEMENT>

+              <option name="myItemId" value="dcaas" />

+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />

+            </PATH_ELEMENT>

+            <PATH_ELEMENT>

+              <option name="myItemId" value="dcaas" />

+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />

+            </PATH_ELEMENT>

+            <PATH_ELEMENT>

+              <option name="myItemId" value="data" />

+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />

+            </PATH_ELEMENT>

+          </PATH>

+        </subPane>

+      </pane>

+    </panes>

+  </component>

+  <component name="PropertiesComponent">

+    <property name="GoToFile.includeJavaFiles" value="false" />

+    <property name="GoToClass.toSaveIncludeLibraries" value="false" />

+    <property name="MemberChooser.sorted" value="false" />

+    <property name="FullScreen" value="false" />

+    <property name="MemberChooser.showClasses" value="true" />

+    <property name="GoToClass.includeLibraries" value="false" />

+    <property name="MemberChooser.copyJavadoc" value="false" />

+  </component>

+  <component name="RunManager">

+    <configuration default="true" type="Remote" factoryName="Remote">

+      <option name="USE_SOCKET_TRANSPORT" value="true" />

+      <option name="SERVER_MODE" value="false" />

+      <option name="SHMEM_ADDRESS" value="javadebug" />

+      <option name="HOST" value="localhost" />

+      <option name="PORT" value="5005" />

+      <method />

+    </configuration>

+    <configuration default="true" type="PhpLocalRunConfigurationType" factoryName="PHP Console">

+      <method />

+    </configuration>

+    <configuration default="true" type="Applet" factoryName="Applet">

+      <module name="" />

+      <option name="MAIN_CLASS_NAME" />

+      <option name="HTML_FILE_NAME" />

+      <option name="HTML_USED" value="false" />

+      <option name="WIDTH" value="400" />

+      <option name="HEIGHT" value="300" />

+      <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />

+      <option name="VM_PARAMETERS" />

+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />

+      <option name="ALTERNATIVE_JRE_PATH" />

+      <method />

+    </configuration>

+    <configuration default="true" type="Application" factoryName="Application">

+      <option name="MAIN_CLASS_NAME" />

+      <option name="VM_PARAMETERS" />

+      <option name="PROGRAM_PARAMETERS" />

+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />

+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />

+      <option name="ALTERNATIVE_JRE_PATH" />

+      <option name="ENABLE_SWING_INSPECTOR" value="false" />

+      <option name="ENV_VARIABLES" />

+      <option name="PASS_PARENT_ENVS" value="true" />

+      <module name="" />

+      <envs />

+      <method />

+    </configuration>

+    <list size="0" />

+    <configuration name="&lt;template&gt;" type="JUnit" default="true" selected="false">

+      <option name="MAIN_CLASS_NAME" />

+      <option name="VM_PARAMETERS" value="-ea" />

+      <option name="PARAMETERS" />

+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />

+    </configuration>

+    <configuration name="&lt;template&gt;" type="TestNG" default="true" selected="false">

+      <option name="MAIN_CLASS_NAME" />

+      <option name="VM_PARAMETERS" value="-ea" />

+      <option name="PARAMETERS" />

+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />

+    </configuration>

+    <configuration name="&lt;template&gt;" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" default="true" selected="false">

+      <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m" />

+    </configuration>

+    <configuration name="&lt;template&gt;" type="WebApp" default="true" selected="false">

+      <Host>localhost</Host>

+      <Port>5050</Port>

+    </configuration>

+  </component>

+  <component name="ShelveChangesManager" show_recycled="false" />

+  <component name="ToolWindowManager">

+    <frame x="58" y="-4" width="1626" height="1058" extended-state="6" />

+    <editor active="false" />

+    <layout>

+      <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />

+      <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />

+      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />

+      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32894737" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />

+      <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />

+      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />

+      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25508904" sideWeight="0.67105263" order="0" side_tool="false" content_ui="combo" />

+      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />

+      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />

+      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />

+      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />

+      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />

+      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />

+      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />

+      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />

+      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />

+      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />

+      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />

+    </layout>

+  </component>

+  <component name="VcsContentAnnotationSettings">

+    <option name="myLimit" value="2678400000" />

+  </component>

+  <component name="VcsManagerConfiguration">

+    <option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />

+    <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />

+    <option name="CHECK_NEW_TODO" value="true" />

+    <option name="myTodoPanelSettings">

+      <value>

+        <are-packages-shown value="false" />

+        <are-modules-shown value="false" />

+        <flatten-packages value="false" />

+        <is-autoscroll-to-source value="false" />

+      </value>

+    </option>

+    <option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />

+    <option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />

+    <option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />

+    <option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />

+    <option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />

+    <option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />

+    <option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />

+    <option name="CHANGED_ON_SERVER_INTERVAL" value="60" />

+    <option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />

+    <option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />

+    <option name="DEFAULT_PATCH_EXTENSION" value="patch" />

+    <option name="SHORT_DIFF_HORIZONTALLY" value="true" />

+    <option name="SHORT_DIFF_EXTRA_LINES" value="2" />

+    <option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />

+    <option name="INCLUDE_TEXT_INTO_PATCH" value="false" />

+    <option name="INCLUDE_TEXT_INTO_SHELF" value="false" />

+    <option name="SHOW_FILE_HISTORY_DETAILS" value="true" />

+    <option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />

+    <option name="SHOW_DIRTY_RECURSIVELY" value="false" />

+    <option name="LIMIT_HISTORY" value="true" />

+    <option name="MAXIMUM_HISTORY_ROWS" value="1000" />

+    <option name="UPDATE_FILTER_SCOPE_NAME" />

+    <option name="USE_COMMIT_MESSAGE_MARGIN" value="false" />

+    <option name="COMMIT_MESSAGE_MARGIN_SIZE" value="72" />

+    <option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="false" />

+    <option name="FORCE_NON_EMPTY_COMMENT" value="false" />

+    <option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />

+    <option name="LAST_COMMIT_MESSAGE" />

+    <option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />

+    <option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />

+    <option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />

+    <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />

+    <option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />

+    <option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />

+    <option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />

+    <option name="ACTIVE_VCS_NAME" />

+    <option name="UPDATE_GROUP_BY_PACKAGES" value="false" />

+    <option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />

+    <option name="UPDATE_FILTER_BY_SCOPE" value="false" />

+    <option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />

+    <option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />

+  </component>

+  <component name="XDebuggerManager">

+    <breakpoint-manager />

+  </component>

+  <component name="editorHistoryManager">

+    <entry file="file://$PROJECT_DIR$/table.php">

+      <provider selected="true" editor-type-id="text-editor">

+        <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">

+          <folding>

+            <marker date="1388131247000" expanded="false" signature="453:465" placeholder="..." />

+            <marker date="1388131247000" expanded="false" signature="822:854" placeholder="..." />

+            <marker date="1388131247000" expanded="true" signature="1739:1817" placeholder="..." />

+            <marker date="1388131247000" expanded="true" signature="2136:2329" placeholder="{...}" />

+            <marker date="1388131247000" expanded="true" signature="2156:2255" placeholder="{&quot;paginate&quot;: false...}" />

+            <marker date="1388131247000" expanded="true" signature="2273:2323" placeholder="{...}" />

+            <marker date="1388131247000" expanded="true" signature="2423:2628" placeholder="{...}" />

+            <marker date="1388131247000" expanded="true" signature="2510:2617" placeholder="{...}" />

+            <marker date="1388131247000" expanded="true" signature="2649:2907" placeholder="{...}" />

+            <marker date="1388131247000" expanded="true" signature="2673:2819" placeholder="{&quot;paginate&quot;: false...}" />

+            <marker date="1388131247000" expanded="true" signature="2841:2897" placeholder="{...}" />

+          </folding>

+        </state>

+      </provider>

+    </entry>

+    <entry file="file://$PROJECT_DIR$/index.php">

+      <provider selected="true" editor-type-id="text-editor">

+        <state line="2" column="0" selection-start="30" selection-end="30" vertical-scroll-proportion="-1.3076923">

+          <folding />

+        </state>

+      </provider>

+    </entry>

+    <entry file="file://$PROJECT_DIR$/config.php">

+      <provider selected="true" editor-type-id="text-editor">

+        <state line="13" column="15" selection-start="420" selection-end="420" vertical-scroll-proportion="-8.5">

+          <folding />

+        </state>

+      </provider>

+    </entry>

+    <entry file="file://$PROJECT_DIR$/data/import.php">

+      <provider selected="true" editor-type-id="text-editor">

+        <state line="29" column="34" selection-start="1266" selection-end="1266" vertical-scroll-proportion="0.39534885">

+          <folding />

+        </state>

+      </provider>

+    </entry>

+  </component>

+</project>

+

 

file:b/config.php (new)
--- /dev/null
+++ b/config.php
@@ -1,1 +1,109 @@
+<?php
+define('__ROOT__', dirname(__FILE__));
+// Set default timezone
+  date_default_timezone_set('UTC');
+ 
+  try {
+    /**************************************
+    * Create databases and                *
+    * open connections                    *
+    **************************************/
+ 
+    // Create (connect to) SQLite database in file
+    $db = new PDO('sqlite:'.__ROOT__.'/data/dcaas.sqlite3');
+    // Set errormode to exceptions
+    $db->setAttribute(PDO::ATTR_ERRMODE, 
+                            PDO::ERRMODE_EXCEPTION);
+  }
+  catch(PDOException $e) {
+    // Print PDOException message
+    echo $e->getMessage();
+  }
 
+function includeHeader($title) {
+?>
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta name="description" content="">
+    <meta name="author" content="">
+    <link rel="shortcut icon" href="../../docs-assets/ico/favicon.png">
+
+    <title>Starter Template for Bootstrap</title>
+
+    <!-- Bootstrap core CSS -->
+    <link href="js/dynatable/jquery.dynatable.css" rel="stylesheet">
+    <link href="css/bootstrap.css" rel="stylesheet">
+
+    <!-- Custom styles for this template 
+    <link href="starter-template.css" rel="stylesheet">-->
+
+
+    <!-- Just for debugging purposes. Don't actually copy this line! -->
+    <!--[if lt IE 9]>
+    <script src="../../docs-assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
+
+    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
+    <!--[if lt IE 9]>
+    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+    <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
+    <![endif]-->
+</head>
+
+<body>
+
+<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
+    <div class="container">
+        <div class="navbar-header">
+            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+                <span class="sr-only">Toggle navigation</span>
+                <span class="icon-bar"></span>
+                <span class="icon-bar"></span>
+                <span class="icon-bar"></span>
+            </button>
+            <a class="navbar-brand" href="#">Project name</a>
+        </div>
+        <div class="collapse navbar-collapse">
+            <ul class="nav navbar-nav">
+                <li class="active"><a href="#">Home</a></li>
+                <li><a href="#about">About</a></li>
+                <li><a href="#contact">Contact</a></li>
+            </ul>
+        </div>
+        <!--/.nav-collapse -->
+    </div>
+</div>
+
+<div class="container">
+<br/>
+<br/>
+<br/>
+<?php
+
+}
+
+function includeFooter() {
+global $db;
+try {
+   /**************************************
+    * Close db connections                *
+    **************************************/
+ 
+    // Close file db connection
+    $db = null;
+  }
+  catch(PDOException $e) {
+    // Print PDOException message
+    echo $e->getMessage();
+  }
+?>
+
+</div> <!-- /.container -->
+</body>
+</html>
+<?php 
+}
+

file:b/data/import.php (new)
--- /dev/null
+++ b/data/import.php
@@ -1,1 +1,60 @@
+<?php
 
+define('__ROOT__', dirname(dirname(__FILE__)));
+include(__ROOT__ . "/config.php");
+/**************************************
+ * Drop tables                         *
+ **************************************/
+
+// Drop table messages from file db
+$db->exec("DROP TABLE IF EXISTS dcaas_services");
+
+$row = 0;
+$headers = Array();
+$csvfile = '../data/DCaaS+Catalogue+September+2013 PublicDCaaS_AFI_Part_3_Sec_5_Service_.csv';
+if (($handle = fopen($csvfile, "r")) !== FALSE) {
+    while (($data = fgetcsv($handle, 4096, ",")) !== FALSE) {
+        if ($row == 0) {
+            /**************************************
+             * Create tables                       *
+             **************************************/
+            // Create table messages
+            $create = "CREATE TABLE IF NOT EXISTS dcaas_services (";
+//                    id INTEGER PRIMARY KEY,"; 
+            foreach ($data as $column) {
+                $column = str_replace(" ", "_", strtolower($column));
+                $create .= $column . " text " . (($column == 'acnabn' || $column == 'service_name') ? " not null " : "") . ",";
+                $headers[] = $column;
+            }
+            //$create .= " PRIMARY KEY ( acnabn,service_name) )";
+            $create .= "id INTEGER PRIMARY KEY )";
+            echo $create;
+            $db->exec($create);
+            // Prepare INSERT statement to SQLite3 file db
+            /* Create a string for the parameter placeholders filled to the number of params */
+            $placeholders = implode(',', array_fill(0, count($headers), '?'));
+            $insert = "INSERT INTO dcaas_services (" . implode($headers, ", ") . ")
+                VALUES (" . $placeholders . ")";
+            echo $insert;
+    $stmt = $db->prepare($insert);
+ $db->beginTransaction();
+        } else {
+            if (count($data) < count($headers)) {
+                $values = $data + array_fill(count($data), count($headers) - count($data), NULL);
+            } else {
+                $values = $data;
+            }
+            print_r($values);
+      $stmt->execute($data);
+        }
+        $row++;
+    }
+// end transaction
+    $db->commit();
+
+    fclose($handle);
+    echo "$row rows imported";
+}
+
+?>
+

file:b/dcaas.iml (new)
--- /dev/null
+++ b/dcaas.iml
@@ -1,1 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>

+<module type="WEB_MODULE" version="4">

+  <component name="NewModuleRootManager" inherit-compiler-output="true">

+    <exclude-output />

+    <content url="file://$MODULE_DIR$" />

+    <orderEntry type="sourceFolder" forTests="false" />

+  </component>

+</module>

+

 

file:a/index.php -> file:b/index.php
--- a/index.php
+++ b/index.php
@@ -1,7 +1,5 @@
 <?php
 include ("config.php");
-//define('__ROOT__', dirname(dirname(__FILE__))); 
-define('__ROOT__', dirname(__FILE__)); 
 require_once(__ROOT__.'/lib/tag-cloud/src/lotsofcode/TagCloud/TagCloud.php');
 
 includeHeader("title");

file:b/table.php (new)
--- /dev/null
+++ b/table.php
@@ -1,1 +1,99 @@
+<?php
+include ("config.php");
+include ("lib/tag-cloud/src/lotsofcode/TagCloud/TagCloud.php");
 
+includeHeader("title");
+?>
+
+    <div class="starter-template">
+        <br/>
+        <br/>
+
+        <h1>Bootstrap starter template</h1>
+
+        <p class="lead">Use this document as a way to quickly start any new project.<br> All you get is this text and a
+            mostly barebones HTML document.</p>
+
+        <div id="search-example-year-filter" style="float: left;">
+            Year:
+            <select id="search-year" name="year">
+                <option></option>
+                <option>2001</option>
+                <option>2003</option>
+                <option>2008</option>
+                <option>2013</option>
+            </select>
+        </div>
+
+        <div id="search-function-example-price-filter" style="float: left; margin-bottom: 1em;">
+            Max Price:
+            $<input id="max-price" type="number" step="1000" data-dynatable-query="max-price">
+        </div>
+
+
+        <table id="my-table">
+            <thead>
+            <?php
+            $row = 0;
+            $csvfile = './data/DCaaS+Catalogue+September+2013 PublicDCaaS_AFI_Part_3_Sec_5_Service_.csv';
+            if (($handle = fopen($csvfile, "r")) !== FALSE) {
+                while (($data = fgetcsv($handle, 4096, ",")) !== FALSE) {
+                    if ($row == 0) {
+                        echo "<thead><th>" . implode($data, "</th><th>") . "</th></thead> \n";
+                    } else {
+                        echo "<tr><td>" . implode($data, "</td><td>") . "</td></tr> \n";
+                    }
+                    $row++;
+                }
+                fclose($handle);
+            }
+            ?>
+        </table>
+    </div>
+
+
+
+<!-- Bootstrap core JavaScript
+================================================== -->
+<!-- Placed at the end of the document so the pages load faster -->
+<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
+<script src="js/bootstrap.min.js"></script>
+<script src="js/dynatable/jquery.dynatable.js"></script>
+<script>
+    $('#my-table').dynatable();
+
+    $('#search-example').dynatable({
+        features: {
+            paginate: false,
+            recordCount: false,
+            sorting: false
+        },
+        inputs: {
+            queries: $('#search-year')
+        }
+    });
+
+    $('#search-function-example')
+        .bind('dynatable:init', function (e, dynatable) {
+            dynatable.queries.functions['max-price'] = function (record, queryValue) {
+                return parseFloat(record.price.replace(/,/, '')) <= parseFloat(queryValue);
+            };
+        })
+        .dynatable({
+            features: {
+                paginate: false,
+                recordCount: false,
+                sorting: false,
+                search: false
+            },
+            inputs: {
+                queries: $('#max-price')
+            }
+        });
+
+</script>
+
+<?php
+includeFooter();
+?>
+