fixed db reference