Still tracking down the bug where the app.getPackageName is returning null.  Fixed the sqlite tables so that app_name in no longer unique.