- don't depend on dbi_foreach, since this is deprecated