Database error when testing on device

Thanks for the reply. But I have a question. When you say . "I am putting my db on app group directory so that the app and app widgets can access it:" I don't quite understand, do I have to put the database inside the application's file group in Xcode? As if it were a view?