Clean up path names before putting them in the data base, or using them to select from the data base