Updating mongodb logic to use Casbah layer for native Scala support.