Switched from BroadcastReceiver to DB trigger