fixed fetchall to fetch