Modified the app to store and retrieve data from a sqlite db