convert spaces to underscores in db names, fixes #1