Add a DEBUG config value
Bulk upserts are now optional in passiverecon2db
Remove global variables