All the reading of the database changed to the background task
Dialog fragment added in.  Need to make changes to the class to make it work