fixed db printing