BroadcastReceiver only in app, fixing db insert crash