Make database file placement more flexible.