I have never installed and ran a local DB (mine have always been on a web server) but I am wondering if you are missing some of the necessary files to run the DB locally on the device. When building the app for deployment, make sure to include any js libraries or external files needed to support the local DB.
You can files in the additional project files section and the js libraries section of your project. Also, make sure all necessary files are included in the app build by checking the boxes next to the files when building your app for iOS or Android.