fixed db update statement