Update records in db