Added fetchall feature to urlgen