changed db location to inclue __dir...