added ability to keep db files in a specified directory and not delete them like in the temp directory mechanism