Beacon Controller code + MongoDn util file