Updates app to handle creating/updating database when app runs.