r10603: neaten up the ldb module initialisation code