Overriding the 'onStop' method in the main activity to properly close the database.

Implementing an 'insertItem' method in 'ItemDataSource' to insert items received from the server in to the database.

Creating a 'ServerDataSource' class that handles all interaction between the Items list and the server.

Instantiating the ServerDataSource in the main activity.