adding fetchall script