update active record