fixed db update