fixed db a bit