move id generation query to config file, allow to set broker IP from command line