update records using room api