Filter the sources before storing them in the database

See https://bugs.launchpad.net/oq-engine/+bug/1246596: this is a HUGE performance improvements in all event based calculations.