Delegates Data Source Fix

Delegate information can now be taken from an entirely separate database
using the `database` field in `event_reg_details`.

If that field isn't set, or even if it doesn't exist at all, the default
`civicevents` database will be used seamlessly.