small changes to db
implemented Broker Processing