Sorting by time, updating database successfully.
Main activity reloads on database update.