database: autoreconnect to the database on failure
collector: restore ability to specify IP directly in config file
collector: use a context to open IP file