sphia_db_foreach useful macro