finished query method of content provider