local_favs = cur.execute(sql).fetchall() causes crasch when table favorites is empty and sql result is 0