iterate empty db query result