All the reading of the database changed to the background task