Use database for collector configuration
Collector should check database for existing configuration items, if they don't exist, they should be set according to the environment variables. If they do exist, and differ from the environment variables, the database should be used and a warning should be logged.
For backwards compatibility, safely check the schema before any transaction involving the collector model.
Edited by Mark Howard