method sets up its own db and path instances