Extract method that removes db directory