Update MainActivity.java

Making a cursor adapter