App.xaml.cs code after adding the method to copy Repository.db from Assets folder to Local storage IF I uncomment App.xaml.cs sqlite.db code the application runs after debuggi