Change database filepath for test
Extract method that makes db path for tests