diff --git a/Villefort.cabal b/Villefort.cabal
--- a/Villefort.cabal
+++ b/Villefort.cabal
@@ -1,5 +1,5 @@
 name:                Villefort
-version:             0.1.0.5
+version:             0.1.0.6
 synopsis: Villefort is a task manager and time tracker written in haskell.
 description: Villefort is powered by a sqlite
 homepage:            https://github.com/Chrisr850/Villefort#readme
diff --git a/src/Database.hs b/src/Database.hs
--- a/src/Database.hs
+++ b/src/Database.hs
@@ -22,10 +22,9 @@
 path =fmap (\x -> (x !! 0) ++ "Villefort/") $  (Data.List.Split.splitOn "Villefort/") <$> getProgPath
 --path = getDataDir
 
-path' = getDataDir
 
 getDb :: IO Connection  
-getDb =  (++ "data/todo.db") <$> path >>= \path ->   putStrLn path >> connectSqlite3 path
+getDb =  getDataFileName "data/todo.db" >>= connectSqlite3 
 
 conv :: [[SqlValue]] -> [[String]]
 conv dat = Prelude.map (\x -> Prelude.map (\y -> fromSql y :: String) x) dat
