Modifications to use Mongo DB instead of PLC DB