Updated distribute
More messing to get db settings correct