That sounds workable, assuming you are doing the queries in a background thread to avoid slowing down the main UI thread.
A standardized way of doing this sort of thing is with a Loader. There is a nice series of articles describing this relatively new approach in more detail and why it was invented.