Introduce setting to ignore silenced events

* Introduce apm.mysql_store_silenced_events & apm.sqlite_store_silenced_events
* Add some more debugging
* Rewrote a bit of code to make it easier on the eyes