db update first part