[odb] add foreach callback
[odb] wip: backend_foreach_callback