added functions, removeById() and updateById().