Saving and pre-populating

These changes allowed me to save my database when I changed activity
pages and now I can repopulate my table when I return to the second
activity.