changed array adapter to simple cursor adapter