added _ids and _count fields with migrations