Use directory name to name databases

Try to avoid database name collisions