fix SQL and return from cleanDbs if the path doesn't exist