fixed db loader