Fixed issue with dbconfig variables not always being correct