Corrects the dbpath