/// <summary>
        /// Opens database that is used for data storage
        /// </summary>
        /// <returns>opened (or newly created) database</returns>
        private HikingPathFinder.App.Database.Database OpenDatabase()
        {
            var platform = DependencyService.Get <IPlatform>();

            string databaseFilename = platform.PathCombine(platform.AppDataFolder, DataService.DefaultDatabaseFilename);

            var localDatabase = new HikingPathFinder.App.Database.Database(databaseFilename);

            var updater = new DatabaseUpdater(localDatabase);

            updater.UpdateToLatest();

            return(localDatabase);
        }
 /// <summary>
 /// Creates a new data service object
 /// </summary>
 public DataService()
 {
     this.networkService = DependencyService.Get <INetworkService>();
     this.database       = this.OpenDatabase();
 }