Script processor (PHP and MongoDB)