Was checking for the db, when I should have been checking for the path, now fixed.