update with db